mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
one more?>
This commit is contained in:
parent
8903145ffa
commit
38d704468d
@ -158,8 +158,9 @@ if (EPOCH_debugMode) then {
|
||||
private _customVars = "";
|
||||
{
|
||||
if !(_x in ["AliveTime","SpawnArray","HitPoints","MissionArray","NotUsed"]) then {
|
||||
private _varName = call compile format["_player%1Key",_x];
|
||||
if (isNil "_varName") then {_varName = format["EPOCH_player%1",_x]};
|
||||
private _varName = format["EPOCH_player%1",_x];
|
||||
private _varNameTmp = call compile format["_player%1Key",_x];
|
||||
if !(isNil "_varNameTmp") then {_varName = _varNameTmp};
|
||||
private _val = missionNamespace getVariable [_varName,_defaultVarValues select _forEachIndex];
|
||||
if (_x == "Temp") then {
|
||||
_customVars = _customVars + format["<t size='1.15' font='puristaLight' align='left'>%1: </t><t size='1.15' font='puristaLight' align='right'>%2°F | %3°C</t><br/>", _x,_val,_val call EPOCH_convertTemp];
|
||||
|
@ -41,8 +41,9 @@ EPOCH_playerEnergyMax = _playerEnergyMax;
|
||||
_fnc_forceUpdate = {
|
||||
private _customVars = [];
|
||||
{
|
||||
private _varName = call compile format["_player%1Key",_x];
|
||||
if (isNil "_varName") then {_varName = format["EPOCH_player%1",_x]};
|
||||
private _varName = format["EPOCH_player%1",_x];
|
||||
private _varNameTmp = call compile format["_player%1Key",_x];
|
||||
if !(isNil "_varNameTmp") then {_varName = _varNameTmp};
|
||||
_customVars pushBack (missionNamespace getVariable [_varName,_defaultVarValues select _foreachindex]);
|
||||
} forEach _customVarNames;
|
||||
[player,_customVars,Epoch_personalToken] remoteExec ["EPOCH_fnc_savePlayer",2];
|
||||
|
Loading…
Reference in New Issue
Block a user