mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
26 lines
454 B
Plaintext
26 lines
454 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Removes a duty factor.
|
|
*
|
|
* Arguments:
|
|
* 0: Factor ID <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* ["ID"] call ace_advanced_fatigue_fnc_removeDutyFactor
|
|
*
|
|
* Public: No
|
|
*/
|
|
#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;
|
|
};
|