I'm a doctor, not a mechanic

UE2:ACTION_WaitForTimer (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UE2Runtime Object >> ScriptedAction >> LatentScriptedAction >> ACTION_WaitForTimer
Package: 
Gameplay
This class in other games:
UT2003, U2, UT2004

A latent action for AIScripts that waits for a certain amount of time to pass.

Note: For some reason this action was implemented to not only complete when the time interval has passed, but also earlier if it was preceded by an ACTION_WaitForEvent and the same event as specified in the WaitForTrigger action is triggered again when the WaitForTimer action is active. If this causes problems with your script sequence, try using the custom class ACTION_WaitOnlyForTimer instead.

Properties[edit]

Property group 'Action'[edit]

PauseTime[edit]

Type: float

The time interval that must pass before this action completed. Waiting time may be reduced due to the "trigger completion" feature mentioned above.

Default values[edit]

Property Value
ActionString "Wait for timer"

Instance functions[edit]

CompleteWhenTimer[edit]

function bool CompleteWhenTimer ()

Overrides: LatentScriptedAction.CompleteWhenTimer

Returns True to signal that this action waits for a timer event to complete.

CompleteWhenTriggered[edit]

function bool CompleteWhenTriggered ()

Overrides: LatentScriptedAction.CompleteWhenTriggered

Returns True to signal that this action waits for a trigger event. This is the origin of the "trigger completion" bug/feature mentioned in the class description.

GetActionString[edit]

function string GetActionString ()

Overrides: ScriptedAction.GetActionString

Returns the ActionString space-concatenated with the PauseTime.

InitActionFor[edit]

function bool InitActionFor (ScriptedController C)

Overrides: LatentScriptedAction.InitActionFor

Sets up the timer of the sequence controller.