GetActionTarget

Category: Objects / Activity
Since engine version: 4.6.5.0 CP

Description

Returns the current action targets of an object.

Syntax

object GetActionTarget (int iTargetIndex, object pObj);

Parameters

iTargetIndex:
0 for pTarget, 1 for pTarget2
pObj:
[opt] Object. Can be 0 in local calls.

Example

ObjectCall( GetActionTarget( ), "ChopDown");
If executed in the StartCall of the Chop action, instantly fells the tree.
See also: GetActTime, GetAction, GetPhase, ObjectSetAction, SetAction, SetActionTargets, SetPhase
Günther, April 2002