mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
365 B
Plaintext
21 lines
365 B
Plaintext
|
/*
|
||
|
* Author: BaerMitUmlaut
|
||
|
* Removes a duty factor.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Factor ID <STRING>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
params [["_id", "", [""]]];
|
||
|
|
||
|
GVAR(dutyList) params ["_idList", "_factorList"];
|
||
|
private _index = _idList find _id;
|
||
|
|
||
|
if (_index != -1) then {
|
||
|
_idList deleteAt _index;
|
||
|
_factorList deleteAt _index;
|
||
|
};
|