2015-01-11 19:32:51 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
2015-01-12 04:20:02 +00:00
|
|
|
* Remove an ACE self action from the player.
|
2015-01-11 23:13:47 +00:00
|
|
|
*
|
2015-01-11 19:32:51 +00:00
|
|
|
* Argument:
|
|
|
|
* 0: ID of the action (Number)
|
2015-01-11 23:13:47 +00:00
|
|
|
*
|
2015-01-11 19:32:51 +00:00
|
|
|
* Return value:
|
|
|
|
* None.
|
|
|
|
*/
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 19:32:51 +00:00
|
|
|
|
|
|
|
private ["_id", "_actionsVar", "_currentID", "_actionIDs", "_actions"];
|
|
|
|
|
|
|
|
|
|
|
|
_id = _this select 0;
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
_actionsVar = ACE_player getVariable [QGVAR(InteractionsSelf), [-1, [], []]];
|
2015-01-11 19:32:51 +00:00
|
|
|
|
|
|
|
_currentID = _actionsVar select 0;
|
|
|
|
_actionIDs = _actionsVar select 1;
|
|
|
|
_actions = _actionsVar select 2;
|
|
|
|
|
|
|
|
_id = _actionIDs find _id;
|
|
|
|
|
|
|
|
if (_id == -1) exitWith {};
|
|
|
|
|
|
|
|
_actionIDs set [_id, -1];
|
|
|
|
_actionIDs = _actionIDs - [-1];
|
|
|
|
|
|
|
|
_actions set [_id, []];
|
|
|
|
_actions = _actions - [[]];
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
ACE_player setVariable [QGVAR(InteractionsSelf), [_currentID, _actionIDs, _actions], false];
|