Category: Objects / Activity
Since engine version: 1.0 OC
Sets the activity of the calling object. Also see the ActMap.
bool SetAction(string action, object target1, object target2, bool force);
- New action to be set. "ActIdle" or "Idle" will clear any action.
- [opt] First target object for the action.
- [opt] Second target object for the action.
- [opt] If
true, changes the action even if the action defined NoOtherAction=1.
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!
The calling clonk will pretend death.