Cogito, ergo sum
UE2:Controller (U2)
Contents
- Package:
- Engine
- Direct subclasses:
- AIController, PlayerController
- This class in other games:
- UE2Runtime, U2XMP, UT2003, UT2004, UT3, UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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 |
|
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]
Overrides: PawnDied (global)
Dead.ServerReStartPlayer[edit]
Overrides: ServerReStartPlayer (global)
GameEnded[edit]
Ignores: Falling, HearNoise, HitWall, KilledBy, NotifyBump, NotifyHeadVolumeChange, NotifyPhysicsVolumeChange, ReceiveWarning, SeeEnemy, TakeDamage
GameEnded.BeginState[edit]
Overrides: Object.BeginState (global)