Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Need Unity 4.6 Scripts

Discussion in 'Scripting' started by scooter99, Mar 8, 2015.

  1. scooter99

    scooter99

    Joined:
    Mar 8, 2015
    Posts:
    6
    Hi I'm looking for the first person controller scripts from Unity 4.x. I need Character Controller, Mouse Look, Character Motor and FPSInput Controller scripts. If you could paste them that would be amazing! The reason I need them is because I'm running Unity 5 and the new character controller just isn't what I want. Thanks!
     
  2. DarkX

    DarkX

    Joined:
    Apr 6, 2014
    Posts:
    42
  3. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Just to ninja the thread here but the 3rd person controller camera setup seems so awkward to me does anyone actually use it?
     
  4. scooter99

    scooter99

    Joined:
    Mar 8, 2015
    Posts:
    6
    No I use a script I found in a tutorial to change between first and 3rd person. And thanks DarkX
     
  5. scooter99

    scooter99

    Joined:
    Mar 8, 2015
    Posts:
    6
    No I use a script I found in a tutorial to change between 1st and 3rd person
     
  6. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Do u have a link to it prolly gonna end up doing my own 3rd person script soon enough.
     
  7. scooter99

    scooter99

    Joined:
    Mar 8, 2015
    Posts:
    6
    #pragma strict

    public var FirstCamera : UnityEngine.Camera;
    public var SecondCamera : UnityEngine.Camera;


    function Update () {

    if(Input.GetKeyDown("f")) {
    FirstCamera.camera.enabled = false;
    SecondCamera.camera.enabled = true;
    }

    if(Input.GetKeyDown("r")) {
    FirstCamera.camera.enabled = true;
    SecondCamera.camera.enabled = false;
    }

    }
     
  8. scooter99

    scooter99

    Joined:
    Mar 8, 2015
    Posts:
    6