configure squad linger time

This commit is contained in:
Eero af Heurlin 2016-07-31 20:06:14 +03:00
parent 66efdc582e
commit 84ef6d7570
4 changed files with 16 additions and 1 deletions

View File

@ -93,5 +93,7 @@ while {true} do
};
deleteVehicle _trg;
sleep squadsLinger;
// Make sure there are no lingering enemy or own units
[_enemies + [_bindToSquad]] call deleteSquads;

View File

@ -121,5 +121,7 @@ while {true} do
};
deleteVehicle _trg;
sleep squadsLinger;
// Make sure there are no lingering enemy or own units
[_enemies + [_squad]] call deleteSquads;

View File

@ -70,5 +70,13 @@ class Params
texts[] = {"1 km", "1.5 km", "2 km", "5 km", "10 km"};
default = 1000;
};
class SquadsLinger
{
//paramsArray[6]
title = "How long squads linger on map after task completetion";
values[] = {0, 60, 90, 120, 300, 600};
texts[] = {"Not at all", 1 min", "1.5 min", "2 min", "5 min", "10 min"};
default = 60;
};
};

View File

@ -38,3 +38,6 @@ while {_x < LZCOUNT} do
LZMinDistace = paramsArray select 5;
publicVariable "LZMinDistace";
squadsLinger = paramsArray select 6;
publicVariable "squadsLinger";