SetAction
Objects
Activity
5.1 OC
bool
string
action
New action to be set. "ActIdle" or "Idle" will clear any action.
object
target1
First target object for the action.
object
target2
Second target object for the action.
bool
force
If true
, changes the action even if the action defined NoOtherAction=1.
Sets the activity of the calling object. Also see the ActMap.
If target1 or target2 is omitted or nil
, the previously set action target(s) will be preserved. To effectively clear action targets, use SetActionTargets.
The StartCall of the defined action is called during the execution of SetAction. So if the StartCall should happen to delete the object you must not access the object in any way following the call to SetAction!
SetAction("Dead");
The calling clonk will pretend death.
GetAction
GetActionTarget
SetPhase
SetDir
Sven22003-06
Günther2004-12