ACE3/addons/kestrel4500/functions/fnc_updateMemory.sqf
jokoho48 84685f4a84 add dayOfWeek and updateMemory to Own File
Update some Comments
Fixing Spelling Issue
2015-08-14 02:22:15 +02:00

21 lines
440 B
Plaintext

/*
* Author: Ruthberg
* Update Memory of Kestrel
*
* Arguments:
* 0: Slot <NUMBER>
* 1: Value <STRING>
*
* Return Value:
* None
*
* Example:
* [1, "test"] call ace_kestrel4500_fnc_updateMemory
*
* Public: No
*/
params ["_slot", "_value"];
GVAR(MIN) set [_slot, (GVAR(MIN) select _slot) min _value];
GVAR(MAX) set [_slot, _value max (GVAR(MAX) select _slot)];
GVAR(TOTAL) set [_slot, (GVAR(TOTAL) select _slot) + _value];