ACE3/addons/advanced_fatigue/functions/fnc_addDutyFactor.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

22 lines
423 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: BaerMitUmlaut
* Adds a duty factor.
*
* Arguments:
* 0: Factor ID <STRING>
* 1: Factor <NUMBER> or <CODE>
*
* Return Value:
* None
*
* Example:
* ["ID", 5] call ace_advanced_fatigue_fnc_addDutyFactor
*
* Public: No
*/
params [["_id", "", [""]], ["_factor", 1, [0, {}]]];
if (_id == "" || {_factor isEqualTo 1}) exitWith {};
GVAR(dutyList) set [_id, _factor];