Jump to content

mike123hh

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Everything posted by mike123hh

  1. 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]};
  2. mike123hh

    artillery barrage script

    thanks works perfectly 👍
  3. mike123hh

    artillery barrage script

    hi thanks for suggestion but still only fires once with the below (its a sochor gun so has more than 1 round) 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]; sleep 20}; it says that there is an generic expression error somewhere when i start playing
  4. 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]};
×