Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE2:ACTION_WaitForPlayer (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT2004 Object >> ScriptedAction >> LatentScriptedAction >> ACTION_WaitForPlayer

Contents

Package: 
Gameplay
This class in other games:
U2, UE2Runtime, UT2003

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.

[edit] Properties

[edit] Property group 'Action'

[edit] Distance

Type: float

The required maximum distance to the player.

Default value: 150.0

[edit] Default values

Property Value
ActionString "Wait for player"
bValidForTrigger False

[edit] Instance functions

[edit] GetDistance

function float GetDistance ()

Overrides: LatentScriptedAction.GetDistance

Returns the desired maximum distance.

[edit] InitActionFor

function bool InitActionFor (ScriptedController C)

Overrides: LatentScriptedAction.InitActionFor

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

[edit] WaitForPlayer

function bool WaitForPlayer ()

Overrides: LatentScriptedAction.WaitForPlayer

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