arma3_missions/helotraining.Altis/spawnSmoke.sqf

25 lines
509 B
Plaintext
Raw Normal View History

2016-07-24 07:57:58 +00:00
_smokeLoc = _this select 0;
_playerno = _this select 1;
2016-07-24 08:35:03 +00:00
diag_log format["spawnSmoke called, _this: %1", _this];
2016-07-24 07:57:58 +00:00
while {!(landingCompleteArray select _playerno)} do
2016-07-24 07:57:58 +00:00
{
_hour = daytime;
if (_hour > 5 && _hour < 19) then
{
_smoke= "SmokeShellGreen" createVehicle _smokeLoc;
sleep 40;
deleteVehicle _smoke;
}
else
{
_chemlight= "Chemlight_green" createVehicle _smokeLoc;
_smoke= "SmokeShellGreen" createVehicle _smokeLoc;
sleep 40;
deleteVehicle _chemlight;
deleteVehicle _smoke;
};
}