mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
398 B
Plaintext
19 lines
398 B
Plaintext
|
/*
|
||
|
* Author: BaerMitUmlaut
|
||
|
* Adds a duty factor.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Factor ID <STRING>
|
||
|
* 1: Factor <NUMBER> or <CODE>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
params [["_id", "", [""]], ["_factor", 1, [0, {}]]];
|
||
|
if (_id == "" || {_factor isEqualTo 1}) exitWith {};
|
||
|
|
||
|
GVAR(dutyList) params ["_idList", "_factorList"];
|
||
|
_idList pushBack _id;
|
||
|
_factorList pushBack _factor,
|