Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

Difference between revisions of "UE2:Actor events (UT2004)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(PreBeginPlay)
(BroadcastLocalizedMessage)
 
(36 intermediate revisions by the same user not shown)
Line 21: Line 21:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This is called when the base of this actor changes.
  
 
====BeginEvent====
 
====BeginEvent====
Line 31: Line 32:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when a game-play starts.
  
 
====BroadcastLocalizedMessage====
 
====BroadcastLocalizedMessage====
Line 36: Line 38:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event broadcasts a localized message to all players.
  
 
====Bump====
 
====Bump====
Line 41: Line 44:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when another actor bumps this one and is blocked.
  
 
====ClientTrigger====
 
====ClientTrigger====
Line 51: Line 55:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event gets called after the successful destruction of an actor.
  
 
====Detach====
 
====Detach====
Line 61: Line 66:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
Called when ''Other'' is taking this actor's space.
  
 
====EncroachingOn====
 
====EncroachingOn====
Line 66: Line 72:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when this actor is trying to take the same space of ''Other''.
  
 
====EndedRotation====
 
====EndedRotation====
Line 71: Line 78:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This is called when '''Rotation''' as reached '''DesiredRotation'''. (?)
  
 
====EndEvent====
 
====EndEvent====
Line 81: Line 89:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when the actor begins to fall (probably only with pawns).
  
 
====FellOutOfWorld====
 
====FellOutOfWorld====
Line 86: Line 95:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when the actor gets out of the world. This can happen in Subtractive levels, where the outside of the world (called zone 0) is the space that wasn't subtracted.
  
 
====FinishedInterpolation====
 
====FinishedInterpolation====
Line 96: Line 106:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when this actor becomes the owner of ''Other''.
  
 
====HitWall====
 
====HitWall====
Line 101: Line 112:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when the actor hits a wall.
  
 
====KApplyForce====
 
====KApplyForce====
Line 136: Line 148:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when the actor hits the ground.
 +
(The difference between a wall and the floor is given by an angle(unknown angle value))
  
 
====LIPSincAnimEnd====
 
====LIPSincAnimEnd====
Line 146: Line 160:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when this actor is no longer the owner of ''Other''.
  
 
====PhysicsVolumeChange====
 
====PhysicsVolumeChange====
Line 151: Line 166:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when the actor is changing to a new [[UE2:PhysicsVolume (UT2004)]].
  
 
====PostBeginPlay====
 
====PostBeginPlay====
Line 156: Line 172:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called after game-play begins and before replication.
  
 
====PostLoadSavedGame====
 
====PostLoadSavedGame====
Line 176: Line 193:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called after the actor has been teleported into ''OutTeleporter''.
  
 
====PostTouch====
 
====PostTouch====
Line 181: Line 199:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event gets called after two actors touch each other and after physics are done.
  
 
====PreBeginPlay====
 
====PreBeginPlay====
Line 186: Line 205:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
This event is called before a match begins.
+
This event is called before game-play starts.
  
 
====PreSaveGame====
 
====PreSaveGame====
Line 197: Line 216:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This is called before the teleporter ''InTeleporter'' teleports this actor. Return false to allow this actor to be teleported, and true to prevent it from being teleported.
  
 
====RanInto====
 
====RanInto====
Line 212: Line 232:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when ''Tex'' has this actor set as '''NotifyActor'' and needs to be rendered.
  
 
====SetInitialState====
 
====SetInitialState====
Line 217: Line 238:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called after '''PostBeginPlay''' to set the initial state of the actor.
  
 
====SpecialHandling====
 
====SpecialHandling====
Line 249: Line 271:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
This event gets called when two actors touch each other, therefore ''Touch'' gets called on those two actors, being ''Other'' a reference to the other actor.
+
This event is called when another actor touches this one.
 
+
 
+
'''Example:'''
+
 
+
If '''Actor1''' touches '''Actor2''', then '''Actor2''' also touched '''Actor1''', therefore ''Touch'' will be called in '''Actor1''' with '''Actor2''' as ''Other'' and in '''Actor2''' with '''Actor1''' as ''Other''.
+
  
 
====TravelPostAccept====
 
====TravelPostAccept====
Line 280: Line 297:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This is called when ''Other'' stops touching this actor.
  
 
====UnTrigger====
 
====UnTrigger====
Line 296: Line 314:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when the actor is changing to a new zone.

Latest revision as of 04:49, 4 July 2012

UT2004 Object >> Actor (events)
Actor events in other games:
RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT3, UDK
Other member categories for this class:
enums, instance functions, internal variables, native functions, properties

Events[edit]

AnimEnd[edit]

event AnimEnd (int Channel)

This event gets called when the animation playing on Channel has ended.

Attach[edit]

event Attach (Actor Other)


BaseChange[edit]

event BaseChange ()

This is called when the base of this actor changes.

BeginEvent[edit]

event BeginEvent ()


BeginPlay[edit]

event BeginPlay ()

This event is called when a game-play starts.

BroadcastLocalizedMessage[edit]

event BroadcastLocalizedMessage (class<LocalMessageMessageClass, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject)

This event broadcasts a localized message to all players.

Bump[edit]

event Bump (Actor Other)

This event is called when another actor bumps this one and is blocked.

ClientTrigger[edit]

event ClientTrigger ()


Destroyed[edit]

event Destroyed ()

This event gets called after the successful destruction of an actor.

Detach[edit]

event Detach (Actor Other)


EncroachedBy[edit]

event EncroachedBy (Actor Other)

Called when Other is taking this actor's space.

EncroachingOn[edit]

event bool EncroachingOn (Actor Other)

This event is called when this actor is trying to take the same space of Other.

EndedRotation[edit]

event EndedRotation ()

This is called when Rotation as reached DesiredRotation. (?)

EndEvent[edit]

event EndEvent ()


Falling[edit]

event Falling ()

This event is called when the actor begins to fall (probably only with pawns).

FellOutOfWorld[edit]

simulated event FellOutOfWorld (eKillZType KillType)

This event is called when the actor gets out of the world. This can happen in Subtractive levels, where the outside of the world (called zone 0) is the space that wasn't subtracted.

FinishedInterpolation[edit]

event FinishedInterpolation ()


GainedChild[edit]

event GainedChild (Actor Other)

This event is called when this actor becomes the owner of Other.

HitWall[edit]

event HitWall (Object.Vector HitNormal, Actor HitWall)

This event is called when the actor hits a wall.

KApplyForce[edit]

event KApplyForce (out Object.Vector Force, out Object.Vector Torque)


KilledBy[edit]

event KilledBy (Pawn EventInstigator)


KImpact[edit]

event KImpact (Actor other, Object.Vector pos, Object.Vector impactVel, Object.Vector impactNorm)


KSkelConvulse[edit]

event KSkelConvulse ()


KUpdateState[edit]

event bool KUpdateState (out KRigidBodyState newState)


KVelDropBelow[edit]

event KVelDropBelow ()


Landed[edit]

event Landed (Object.Vector HitNormal)

This event is called when the actor hits the ground. (The difference between a wall and the floor is given by an angle(unknown angle value))

LIPSincAnimEnd[edit]

event LIPSincAnimEnd ()


LostChild[edit]

event LostChild (Actor Other)

This event is called when this actor is no longer the owner of Other.

PhysicsVolumeChange[edit]

event PhysicsVolumeChange (PhysicsVolume NewVolume)

This event is called when the actor is changing to a new UE2:PhysicsVolume (UT2004).

PostBeginPlay[edit]

event PostBeginPlay ()

This event is called after game-play begins and before replication.

PostLoadSavedGame[edit]

event PostLoadSavedGame ()


PostNetBeginPlay[edit]

event PostNetBeginPlay ()


PostNetReceive[edit]

event PostNetReceive ()


PostTeleport[edit]

event PostTeleport (Teleporter OutTeleporter)

This event is called after the actor has been teleported into OutTeleporter.

PostTouch[edit]

event PostTouch (Actor Other)

This event gets called after two actors touch each other and after physics are done.

PreBeginPlay[edit]

event PreBeginPlay ()

This event is called before game-play starts.

PreSaveGame[edit]

event PreSaveGame ()


PreTeleport[edit]

event bool PreTeleport (Teleporter InTeleporter)

This is called before the teleporter InTeleporter teleports this actor. Return false to allow this actor to be teleported, and true to prevent it from being teleported.

RanInto[edit]

event RanInto (Actor Other)


RecoverFromBadStateCode[edit]

event RecoverFromBadStateCode ()


RenderTexture[edit]

event RenderTexture (ScriptedTexture Tex)

This event is called when Tex has this actor set as 'NotifyActor and needs to be rendered.

SetInitialState[edit]

simulated event SetInitialState ()

This event is called after PostBeginPlay to set the initial state of the actor.

SpecialHandling[edit]

event Actor SpecialHandling (Pawn Other)


TakeDamage[edit]

event TakeDamage (int Damage, Pawn EventInstigator, Object.Vector HitLocation, Object.Vector Momentum, class<DamageTypeDamageType)


Tick[edit]

event Tick (float DeltaTime)

This event is called every cycle of the game's main loop. DeltaTime represents how much time has passed (in seconds) since the last cycle (since the last time Tick was called).

Timer[edit]

event Timer ()

This event gets called when SetTimer (float NewTimerRate, bool bLoop) is used. If bLoop is set to true, then this event will be called every x seconds (NewTimerRate), otherwise it only gets called once and after x seconds (NewTimerRate) have passed since the call to SetTimer. To stop the timer, one has to call SetTimer (0, false).

TornOff[edit]

event TornOff ()


Touch[edit]

event Touch (Actor Other)

This event is called when another actor touches this one.

TravelPostAccept[edit]

event TravelPostAccept ()


TravelPreAccept[edit]

event TravelPreAccept ()


Trigger[edit]

event Trigger (Actor Other, Pawn EventInstigator)


TriggerEvent[edit]

simulated event TriggerEvent (name EventName, Actor Other, Pawn EventInstigator)


UnTouch[edit]

event UnTouch (Actor Other)

This is called when Other stops touching this actor.

UnTrigger[edit]

event UnTrigger (Actor Other, Pawn EventInstigator)


UsedBy[edit]

event UsedBy (Pawn user)

This event gets called when a Player or Bot presses the Use key on this actor.

ZoneChange[edit]

event ZoneChange (ZoneInfo NewZone)

This event is called when the actor is changing to a new zone.