Jump to content
  • 0

Smoke on a timer? Need help with this code...


Magz

Question

I need to put the smoke in this code on a 5 minute timer so that after after the smoke burns out it loops and happens again. Any help with this?

//Create Visible Marker with SMOKE

_dayTime = dayTime;
if (_dayTime > 6 && _dayTime < 18.5) then {
_smokeMarker = "SmokeShellRed" createVehicle getPosATL _loot_box;
_smokeMarker setPosATL (getPosATL _loot_box);
_smokeMarker attachTo [_loot_box,[0,0,0]];
};
if (_dayTime > 18.5 && _dayTime < 6) then {
_smokeMarker = "ARTY_Flare_Medium" createVehicle getPosATL _loot_box;
_smokeMarker setPosATL (getPosATL _loot_box);
_smokeMarker attachTo [_loot_box, [0,0,0]];
};
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...