GetActionTarget

Category: Objects / Activity
Since engine version: 1.0 OC

Description

Returns the current action targets of the calling object.

Syntax

object GetActionTarget(int index);

Parameter

index:
0 for target, or 1 for target2

Example

GetActionTarget()->~ChopDown();
If executed in the StartCall of the Chop action, instantly fells the tree.
See also: GetActTime, GetAction, GetPhase, SetAction, SetActionTargets, SetPhase
Günther, 2002-04