Here’s how to remove a single addAction from an object after it’s called:
_target = _this select 0; // Object that had the Action (also _target in the addAction command) _caller = _this select 1; // Unit that used the Action (also _this in the addAction command) _action = _this select 2; // ID of the Action // Remove the rescue option _target removeAction _action;
Here’s how to remove all addActions from an object:
_tmpaction = _object addAction["foo", "foo.sqf"]; while {_tmpaction >= 0} do { _target removeAction _tmpaction; _tmpaction = _tmpaction - 1; };