Cogito, ergo sum

UE2:Controller (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> Controller
Package: 
Engine
Direct subclasses:
AIController, PlayerController
This class in other games:
UE2Runtime, U2XMP, UT2003, UT2004, UT3, UDK

Controller, the base class of players or AI.

Controllers are non-physical actors that can be attached to a pawn to control its actions. PlayerControllers are used by human players to control pawns, while AIControFllers implement the artificial intelligence for the pawns they control. Controllers take control of a pawn using their Possess() method, and relinquish control of the pawn by calling UnPossess().

Controllers receive notifications for many of the events occuring for the Pawn they are controlling. This gives the controller the opportunity to implement the behavior in response to this event, intercepting the event and superceding the Pawn's default behavior.

This is a built-in Unreal class and it shouldn't be modified.

Constants[edit]

LATENT_MOVETOWARD[edit]

Value: 503

LatentAction number for Movetoward() latent function

Properties[edit]

Property group 'Controller'[edit]

PlayerReplicationInfoClass[edit]

Type: class<PlayerReplicationInfo>


Default value: Class'Engine.PlayerReplicationInfo'

Internal variables[edit]

See Controller internal variables.

Default values[edit]

Property Value
bHidden True
bHiddenEd True
RotationRate
Member Value
Pitch 3072
Roll 2048
Yaw 30000

Enums[edit]

EAttitude[edit]

ATTITUDE_Enemy 
considered an enemy
ATTITUDE_Neutral 
not considered a friend or enemy (but could go either way)
ATTITUDE_Friend 
considered a friend
ATTITUDE_None 
used for invalid situations (attitude to self, Pawn not set etc.)

Functions[edit]

See Controller functions.

States[edit]

Dead[edit]

Ignores: HearNoise, KilledBy, SeeEnemy

Dead.PawnDied[edit]

function PawnDied (Pawn P)

Overrides: PawnDied (global)


Dead.ServerReStartPlayer[edit]

function ServerReStartPlayer ()

Overrides: ServerReStartPlayer (global)


GameEnded[edit]

Ignores: Falling, HearNoise, HitWall, KilledBy, NotifyBump, NotifyHeadVolumeChange, NotifyPhysicsVolumeChange, ReceiveWarning, SeeEnemy, TakeDamage

GameEnded.BeginState[edit]

event BeginState ()

Overrides: Object.BeginState (global)