trial implementation

This commit is contained in:
2024-02-13 20:50:09 -08:00
parent 5114ae334f
commit e55c9a0751
5 changed files with 38 additions and 2 deletions

View File

@@ -8,12 +8,22 @@ if (!hasInterface) exitWith {};
_clientID = _thisArgs select 0;
player setDamage 1;
private _timeWentUnconscious = player getVariable [QGVARMAIN(lastTimeKnockedOut), -1];
private _durationSpentUnconscious = diag_tickTime - _timeWentUnconscious;
// log to server RPT
[
LEVEL_INFO,
QUOTE(COMPONENT),
"CHAT COMMAND RESPAWN",
[player] call EFUNC(common,addPlayerInfoToArray)
[player, [[
"durationSpentUnconscious",
(if (_timeWentUnconscious > - 1) then {
_durationSpentUnconscious
} else {
-1
})
]]] call EFUNC(common,addPlayerInfoToArray)
] remoteExec [QEFUNC(common,log), 2];
// systemChat to all remote machines