Pastebin

Paste #1075: FlyingController.uc

< previous paste - next paste>

Pasted by tdn

Download View as text

//-----------------------------------------------------------
//
//-----------------------------------------------------------
class FlyingController extends UTPlayerController;

// Code to activate a simple third person camera
// Don't know if it is all necessary, but it works

simulated event PostBeginPlay()
{
    super.PostBeginPlay();

    PlayerCamera.CameraStyle = 'ThirdPerson';

    if(Pawn != none && UTPawn(Pawn) != none)
    {
        UTPawn(Pawn).SetThirdPersonCamera(true);
    }
}


DefaultProperties
{
     bBehindView=true
}

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.