mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
gforces: fix for when there's no player
This commit is contained in:
parent
e216a33574
commit
3fa6f1b0c9
@ -7,6 +7,11 @@ _interval = time - GVAR(lastUpdateTime);
|
||||
|
||||
// Update the g-forces at constant game time intervals
|
||||
if (_interval < INTERVAL) exitWith {};
|
||||
|
||||
if (isNull ACE_player) exitWith {};
|
||||
|
||||
if !(alive ACE_player) exitWith {};
|
||||
|
||||
GVAR(lastUpdateTime) = time;
|
||||
|
||||
/*if !(vehicle ACE_player isKindOf "Air") exitWith {
|
||||
|
Loading…
Reference in New Issue
Block a user