I don't need to test my programs. I have an error-correcting modem.

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

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Touch)
(BroadcastLocalizedMessage)
 
(19 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 match starts.
+
This event is called when a game-play starts.
  
 
====BroadcastLocalizedMessage====
 
====BroadcastLocalizedMessage====
Line 37: Line 38:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event broadcasts a localized message to all players.
  
 
====Bump====
 
====Bump====
Line 53: Line 55:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
This event gets called after the successful destruction of an actor (caused by the use of '''Destroy()''').
+
This event gets called after the successful destruction of an actor.
  
 
====Detach====
 
====Detach====
Line 64: Line 66:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
Called when ''Other'' is taking this actor's space.
  
 
====EncroachingOn====
 
====EncroachingOn====
Line 69: 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 74: Line 78:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This is called when '''Rotation''' as reached '''DesiredRotation'''. (?)
  
 
====EndEvent====
 
====EndEvent====
Line 101: Line 106:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called when this actor becomes the owner of ''Other''.
  
 
====HitWall====
 
====HitWall====
Line 154: 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 159: 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 164: Line 172:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
This event is called after a match begins.
+
This event is called after game-play begins and before replication.
  
 
====PostLoadSavedGame====
 
====PostLoadSavedGame====
Line 185: Line 193:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This event is called after the actor has been teleported into ''OutTeleporter''.
  
 
====PostTouch====
 
====PostTouch====
Line 190: Line 199:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
This event gets called after two actors touched each other, while ''Touch'' gets called when they touch.
+
This event gets called after two actors touch each other and after physics are done.
  
 
====PreBeginPlay====
 
====PreBeginPlay====
Line 196: 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 207: 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 222: 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 227: 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 285: Line 297:
  
 
<!-- enter event description -->
 
<!-- enter event description -->
 +
This is called when ''Other'' stops touching this actor.
  
 
====UnTrigger====
 
====UnTrigger====

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.