Forum Jump :

Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 61
In-game name: Kobayashi Maru

 
#184546 Posted at 2015-12-15 08:02        
     
you need to add a variable on each box. Try diag_ticktime for dating:
list_of_crates = [];
create _objet....
_object setVariable ["time_start", diag_Ticktime]; 
list_of_crates pushback _object;

then check this variable in a loop:
0 = [] spawn {
while {true} do {
{ if (diag_Ticktime > (_x geVariable "time_start") + 300) then {deleteVehicle _x} } foreach list_of_crates;
sleep 5;
};
};

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS