mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
fixes part 4
This commit is contained in:
parent
0f9eacd28a
commit
8903145ffa
@ -31,6 +31,7 @@ _customVarLimits = _customVarsInit apply {_x param [2,[]]};
|
||||
_varNameTmp = call compile format["_player%1Key",_x];
|
||||
if !(isNil "_varNameTmp") then {_varName = _varNameTmp};
|
||||
_varLimits params [[format["_player%1MaxRaw",_x],100],[format["_player%1MinRaw",_x],0]];
|
||||
_loadVar = missionNamespace setVariable [_varName, missionNamespace getVariable [format["EPOCH_player%1",_x], _varDefault]];
|
||||
call compile format['_player%1 = missionNamespace getVariable [_varName, _varDefault]; _player%1Max = _player%1MaxRaw; _player%1Min = _player%1MinRaw',_x];
|
||||
} forEach _customVarNames;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user