Home   Help Search Login Register  

Author Topic: trouble with this artillery script  (Read 333 times)

0 Members and 1 Guest are viewing this topic.

BHD Mod

  • Guest
trouble with this artillery script
« on: 31 Mar 2003, 06:22:35 »
;BarrageArea.sqs - script to Barrage a Triggered area
;make a tigger
;call this script on activate or deactivate:  
;[ID,Type,#shells,Xrange,Yrange,starting height,minimum time, variable time] exec "tripobject.sqs"
_tag    = _this select 0
_objtype = _this select 1
_amount    = _this select 2
_randomX = _this select 3
_randomY = _this select 4
_height  = _this select 5
_timemin = _this select 6
_timev    = _this select 7
_offsetX  = _randomX / 2
_offsetY  = _randomY / 2
_height  = _this select 4
_tX   = getpos _tag select 0
_tY   = getpos _tag select 1
_tZ   = getpos _tag select 2
#Loop
? (_amount < 1 ) : exit
_obj = _objtype CamCreate[((_tX+Random _randomX)-_offsetX),((_tY+Random _randomY)-_offsetY),_tZ+_height]
_amount = _amount - 1
~(_timemin+(random _timev))
goto "Loop"

This script i got from the snippets page. It says to create a trigger and call the script but it doesn't work. could someone tell me how to use this?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:trouble with this artillery script
« Reply #1 on: 31 Mar 2003, 11:00:38 »
What do you mean, it didn't work?     What did you try?    What happened?

The instructions on how to use the script are in your post, (admittedly they aren't particularly clear) so there's not much we can add.    Which bit are you having trouble with?
Plenty of reviewed ArmA missions for you to play