@@ -19,15 +19,16 @@ private _functionLogName = "AAR > trackLoop";
19
19
20
20
DBUG(" Starting track loop" , _functionLogName );
21
21
22
- private _timeSinceLastInfantryInsert = time ;
23
- private _timeSinceLastGroundVehicleInsert = time ;
24
- private _timeSinceLastAirVehicleInsert = time ;
25
- private _timeSinceLastMarkerInsert = time ;
22
+ GVAR(timeSinceLastInfantryInsert) = time ;
23
+ GVAR(timeSinceLastGroundVehicleInsert) = time ;
24
+ GVAR(timeSinceLastAirVehicleInsert) = time ;
25
+ GVAR(timeSinceLastMarkerInsert) = time ;
26
26
27
27
// Just log markers once (for now)
28
28
call FUNC(trackMarkers);
29
29
30
30
[{
31
+
31
32
if (GVAR(logEvents)) then {
32
33
33
34
// We only want to log movements if there are players in the map
@@ -45,20 +46,19 @@ call FUNC(trackMarkers);
45
46
GVAR(noPlayers) = false ;
46
47
47
48
// We save unit positions at different frequencies depending on their vehicle
48
-
49
- if (time >= _timeSinceLastInfantryInsert + GVAR(insertFrequencyInfantry)) then {
49
+ if (time >= GVAR(timeSinceLastInfantryInsert) + GVAR(insertFrequencyInfantry)) then {
50
50
call FUNC(trackInfantry);
51
- _timeSinceLastInfantryInsert = time ;
51
+ GVAR(timeSinceLastInfantryInsert) = time ;
52
52
};
53
53
54
- if (time >= _timeSinceLastGroundVehicleInsert + GVAR(insertFrequencyGroundVehicle)) then {
54
+ if (time >= GVAR(timeSinceLastGroundVehicleInsert) + GVAR(insertFrequencyGroundVehicle)) then {
55
55
[" ground" ] call FUNC(trackVehicles);
56
- _timeSinceLastGroundVehicleInsert = time ;
56
+ GVAR(timeSinceLastGroundVehicleInsert) = time ;
57
57
};
58
58
59
- if (time >= _timeSinceLastAirVehicleInsert + GVAR(insertFrequencyAirVehicle)) then {
59
+ if (time >= GVAR(timeSinceLastAirVehicleInsert) + GVAR(insertFrequencyAirVehicle)) then {
60
60
[" air" ] call FUNC(trackVehicles);
61
- _timeSinceLastAirVehicleInsert = time ;
61
+ GVAR(timeSinceLastAirVehicleInsert) = time ;
62
62
};
63
63
64
64
} else {
0 commit comments