im trying to write a script to tell my artillery gun "art1" to fire near the soldier "s1" 10 times
using the below the gun only fires once it seems it gets stuck after one loop
for "_i" from 1 to 10 do {
_ammo = getArtilleryAmmo [art1] select 4;
_dir = round random 360;
_dis = 50 + round random 100;
_tgt = s1 getRelPos [_dis,_dir];
art1 doArtilleryFire[_tgt,_ammo,1]};