Hello. I'm new in arma 3 editing and was trying to practice a little on the loops.
I had a little problem immediatly, i don't see how to make a countdown in my loop. I can't see how to make it.
test4 = {
removeallactions player;
player addAction ["Several Suv around", {
for "_i" from 1 to 20 do {
_vehic = "C_SUV_01_F";
_vehic createVehicle position player;
}
}];
player addAction ["Delete all target in 100m", {
_cible = cursorTarget;
_position_cible = getPos _cible;
_classecible = typeOf cursorTarget;
for "_i" from 1 to 5 do {
playsound "Alarm";
cutText [format ["Vehicle Type : %1 deleted in XXXX seconds", _classecible], "PLAIN DOWN"];
sleep 1; };
{ deleteVehicle _x; } forEach nearestObjects [ _position_cible,[_classecible],100]
} ];
};
call test4;
So my code is taking the classname of the targeted vehicle and is deleting it on a radius of 100m. This is working but I made a "XXXX" on the line where my problem is. How to make a countdown here please.
Maybe there is some errors in my english sorry ;)
PS : i searched something around this problem without success.