Mostly Harmless

UE2:PlayerController (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> Controller >> PlayerController
Package: 
Engine
Known classes within PlayerController:
CheatManager, PlayerInput, U2CheatManager
Direct subclasses:
MessagingSpectator, Admin, Camera, DemoRecSpectator, PlayerControllerTutorial, U2PlayerController
This class in other games:
U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3

PlayerController

PlayerControllers are used by human players to control pawns.

This is a built-in Unreal class and it shouldn't be modified. for the change in Possess().

Properties[edit]

Property group 'ForceFeedback'[edit]

bEnableDamageForceFeedback[edit]

Type: bool

Modifiers: globalconfig


Default value: True

bEnableGUIForceFeedback[edit]

Type: bool

Modifiers: globalconfig


Default value: True

bEnablePickupForceFeedback[edit]

Type: bool

Modifiers: globalconfig


Default value: True

bEnableWeaponForceFeedback[edit]

Type: bool

Modifiers: globalconfig


Default value: True

bForceFeedbackSupported[edit]

Type: bool

true if a device is detected

Default value: True

Internal variables[edit]

See PlayerController internal variables.

Default values[edit]

Property Value
bCanDoSpecial True
bCanOpenDoors True
bIsPlayer True
bTravel True
FovAngle 85.0
NetPriority 3.0

Functions[edit]

Exec functions[edit]

See PlayerController exec functions.

Native functions[edit]

ClientHearSound[edit]

native event ClientHearSound (Actor Actor, int Id, Sound S, Object.Vector SoundLocation, Object.Vector Parameters, bool Attenuate)


ClientTravel[edit]

native event ClientTravel (string URL, Actor.ETravelType TravelType, bool bItems)


ClientValidate[edit]

private native event ClientValidate (string C)


ServerValidationResponse[edit]

private native event ServerValidationResponse (string R)


ChangeVoiceChatter[edit]

native final function ChangeVoiceChatter (int IpAddr, int Handle, bool Add)


ConsoleCommand[edit]

native function string ConsoleCommand (string Command)

Overrides: Actor.ConsoleCommand


CopyToClipboard[edit]

native function CopyToClipboard (string Text)


FindStairRotation[edit]

native(524) final function int FindStairRotation (float DeltaTime)


GetDefaultURL[edit]

native final function string GetDefaultURL (string Option)


GetEntryLevel[edit]

native final function LevelInfo GetEntryLevel ()


GetPlayerNetworkAddress[edit]

native final function string GetPlayerNetworkAddress ()


GetServerNetworkAddress[edit]

native final function string GetServerNetworkAddress ()


GetURLProtocol[edit]

native final function string GetURLProtocol ()


LeaveVoiceChat[edit]

native final function LeaveVoiceChat ()


PasteFromClipboard[edit]

native function string PasteFromClipboard ()


ResetKeyboard[edit]

native(544) final function ResetKeyboard ()


SendEvent[edit]

native final function SendEvent (string Event)


SetNetSpeed[edit]

native final function SetNetSpeed (int NewSpeed)


SetViewTarget[edit]

native final function SetViewTarget (Actor NewViewTarget)


UpdateURL[edit]

native(546) final function UpdateURL (string NewOption, string NewValue, bool bSaveDefault)


Events[edit]

AddCameraEffect[edit]

event AddCameraEffect (CameraEffect NewEffect, optional bool RemoveExisting)


ClientMessage[edit]

event ClientMessage (coerce string S, optional name Type)


ClientSetViewTarget[edit]

event ClientSetViewTarget (Actor a)


Destroyed[edit]

simulated event Destroyed ()

Overrides: Controller.Destroyed


GetRadarZoomPct[edit]

event float GetRadarZoomPct ()


InitInputSystem[edit]

event InitInputSystem ()


InitPlayer[edit]

simulated event InitPlayer ()


NotifyLanded[edit]

event bool NotifyLanded (Object.Vector HitNormal)

Overrides: Controller.NotifyLanded


PlayerCalcView[edit]

event PlayerCalcView (out Actor ViewActor, out Object.Vector CameraLocation, out Object.Rotator CameraRotation)


PlayerTick[edit]

event PlayerTick (float DeltaTime)


PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Controller.PostBeginPlay


PostNetBeginPlay[edit]

event PostNetBeginPlay ()

Overrides: Actor.PostNetBeginPlay


PreClientTravel[edit]

event PreClientTravel ()


ReceiveLocalizedMessage[edit]

simulated event ReceiveLocalizedMessage (class<LocalMessageMessage, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject)


RemoveCameraEffect[edit]

event RemoveCameraEffect (CameraEffect ExEffect)


ServerChangeVoiceChatter[edit]

event ServerChangeVoiceChatter (PlayerController Player, int IpAddr, int Handle, bool Add)


ServerGetVoiceChatters[edit]

event ServerGetVoiceChatters (PlayerController Player)


StartClientDemoRec[edit]

simulated event StartClientDemoRec ()


TeamMessage[edit]

event TeamMessage (PlayerReplicationInfo PRI, coerce string S, name Type, optional Sound MessageSound)


TravelPostAccept[edit]

event TravelPostAccept ()

Overrides: Actor.TravelPostAccept


Other instance functions[edit]

See PlayerController instance functions.

States[edit]

See PlayerController states.