Arma 3
Timed trigger for blowing up explosive charge???
I want to make a mission where you need to deactivate some explosive charges within a certian timeframe, Does anyone know how to do this? I want the explosive charge timer to be active when the mission starts.
< >
14/4 megjegyzés mutatása
just call this in the init.
_bombTimer = 180; //3 minutes _bombDefused = 0; bombObject addAction ["Defuse me",{ _bombDefused = 1; }]; while {true} do { if (_bombTimer == 0 && _bombDefused == 0) then { _bomb = "R_60mm_HE" createVehicle position bombObject; _bomb = "R_60mm_HE" createVehicle position bombObject; _bomb = "R_60mm_HE" createVehicle position bombObject; _bomb = "R_60mm_HE" createVehicle position bombObject; //copy/paste more of these for a bigger explosion } exitWith{}; if (_bombTimer != 0 && _bombDefused == 1) then { hint "bomb has been defused"; } exitWith{}; };
GOTOPOST (Kitiltva) 2017. márc. 20., 22:28 
Thanks. I will try it out!
GOTOPOST eredeti hozzászólása:
Thanks. I will try it out!
keep in mind to use it with multiple people it will need to be done differently
GOTOPOST eredeti hozzászólása:
Thanks. I will try it out!
sorry it was late at night and i forgot a few things
_bombTimer = 180; //3 minutes _bombDefused = 0; bombObject addAction ["Defuse me",{ _bombDefused = 1; }]; while {true} do { _bombTimer = _bombTimer - 1; if (_bombTimer == 0 && _bombDefused == 0) then { _bomb = "R_60mm_HE" createVehicle position bombObject; _bomb = "R_60mm_HE" createVehicle position bombObject; _bomb = "R_60mm_HE" createVehicle position bombObject; _bomb = "R_60mm_HE" createVehicle position bombObject; //copy/paste more of these for a bigger explosion } exitWith{}; if (_bombTimer != 0 && _bombDefused == 1) then { hint "bomb has been defused"; } exitWith{}; sleep 1; };
< >
14/4 megjegyzés mutatása
Laponként: 1530 50

Közzétéve: 2017. márc. 20., 3:16
Hozzászólások: 4