1 seconds broadcast-time for setunitloadout

This commit is contained in:
He-Man 2018-04-09 19:19:42 +02:00
parent 8769421ca1
commit 001c49f148

View File

@ -68,13 +68,14 @@ _respawnButton ctrlEnable false;
[_display] spawn {
disableSerialization;
params ["_display"];
_startTime = diag_tickTime+5;
_startTime = diag_tickTime+4;
waitUntil {
uiSleep 0.2;
(isNull _display) || ((_startTime - diag_tickTime) <= 0)
};
if (!isNull _display) then {
player setUnitLoadout (getUnitLoadout player);
uisleep 1; // give one second to broadcast clothing change
missionnamespace setvariable ["EPOCH_forceUpdateNow",true];
};
};