DoDoorAction(object, int)

Does specific action to target door.

void DoDoorAction(
    object oTargetDoor,
    int nDoorAction
);

Parameters

oTargetDoor

Door action is to occur to.

nDoorAction

DOOR_ACTION_*


Description

Perform nDoorAction on oTargetDoor.



Remarks

This is specifically for adding the action on top of an action queue. This means the OnBlocked event can fire and open a door without disrupting any ActionMoveToLocation commands.

Not all GetIsDoorActionPossible() checks are comprehensive, therefore DoDoorAction may fail even if the check is passed.


Version

1.22

See Also

categories: Action on Object Functions
constants: DOOR_ACTION_* Constants


 author: Jody Fletcher, editor: Jasperre, additional contributor(s): Jasperre