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

UE2:ACTION_WaitForPlayer (UE2Runtime)

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

This action completes when a human-controlled pawn to get closer than a certain distance to the AI-controlled pawn currently using the script. This action is not allowed for ScriptedTriggers.


Property group 'Action'[edit]


Type: float

The required maximum distance to the player.

Default value: 150.0

Default values[edit]

Property Value
ActionString "Wait for player"
bValidForTrigger False

Instance functions[edit]


function float GetDistance ()

Overrides: LatentScriptedAction.GetDistance

Returns the desired maximum distance.


function bool InitActionFor (ScriptedController C)

Overrides: LatentScriptedAction.InitActionFor

Initializes the action and lets the AI pawn wait for the player.


function bool WaitForPlayer ()

Overrides: LatentScriptedAction.WaitForPlayer

Returns True to tell the ScriptedController that this action wants to wait for a player.