The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE2:ACTION_WaitForTimer (UE2Runtime)
Object >> ScriptedAction >> LatentScriptedAction >> ACTION_WaitForTimer |
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]
Overrides: LatentScriptedAction.CompleteWhenTimer
Returns True to signal that this action waits for a timer event to complete.
CompleteWhenTriggered[edit]
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]
Overrides: ScriptedAction.GetActionString
Returns the ActionString space-concatenated with the PauseTime.
InitActionFor[edit]
Overrides: LatentScriptedAction.InitActionFor
Sets up the timer of the sequence controller.