GetAction

Category: Objects / Activity
Since engine version: 4.6.5.0 CP

Description

Returns the name of the current activity of an object. If the object is currently not active, the return value is "Idle".

Syntax

string GetAction (object pObj);

Parameter

pObj:
[opt] Object to be checked. Can be 0 in local calls.

Example

if(GetAction(FindObject(CLNK)) eq "Swim") Message("Toll, irgendein Clonk schwimmt");
See also: GetActTime, GetActionTarget, GetPhase, ObjectSetAction, SetAction, SetActionTargets, SetPhase
Günther, April 2002