Home   Help Search Login Register  

Author Topic: Stoping artillery fire  (Read 452 times)

0 Members and 1 Guest are viewing this topic.

Hans Kloss

  • Guest
Stoping artillery fire
« on: 12 Feb 2003, 11:44:31 »
another simple question :

I have downloaded several artillery scripts ,found one that is very suitable for my mission but......it keeps going on forever.I'm sure with certain line the script can be stopped but  how ?

_Centre = _this select 0
_area = _this select 1
_shells = _this select 2


_CentrePos = GetMarkerPos _Centre
_xco = _CentrePos select 0
_yco = _CentrePos select 1
_zco = _CentrePos select 2

_areaX2 = _area * 2

~2
titletext ["\n\n\n\n\n\n\n Run for cover !!!","plain", 2]

~2

_a = _shells

#start

_bomb1 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

~1

_bomb2 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb3= "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb4 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb5= "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb6 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb7= "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb8 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb9 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_bomb10 = "Shell125" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 150]

_a= _shells - 1

?(_a > 0) : goto "start"



Exit



your help will be very much appreciated

Offline Ottie

  • Members
  • *
  • And you think this is personal
Re:Stoping artillery fire
« Reply #1 on: 12 Feb 2003, 12:45:55 »
instead of :

_a = _shells - 1

use

_a = _a - 1
If you can't beat them, buy them

Hans Kloss

  • Guest
Re:Stoping artillery fire
« Reply #2 on: 15 Feb 2003, 10:37:48 »
thx for your help-it works perfect now

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Re:Stoping artillery fire
« Reply #3 on: 18 Feb 2003, 22:32:32 »
Or just RUN FOR COVER!!! AHHH!!!