trial implementation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user