OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Graywolf on 13 Jan 2006, 22:33:47

Title: Will this Arty Barrage work in ECP
Post by: Graywolf on 13 Jan 2006, 22:33:47
I have a arty Barrage script i use in my missions

it doesn't seem to work in ECP

I'm not sure about any of it but I think its calling the wrong oridinace ...like it calls for shell73 and ECP uses shell125 ?

sorry if I'm way off track  could anybody help me on this one
I would like to use this arty script with ECP if I can

any ideas ?

in the trigger
on activation
[Barrage,"Shell73",50,50,100,300,0,.7] exec "BarrageArea.sqs"  

BarrageArea.sqs

;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"



thanks
graywolf
Title: Re:Will this Arty Barrage work in ECP
Post by: 456820 on 13 Jan 2006, 22:39:06
in what way does it now work with ECP ?
Try changing the type of shell there is a shell which gives a nice overhead sream effect which is very good for arty barrages not sure of its name though
Title: Re:Will this Arty Barrage work in ECP
Post by: Planck on 13 Jan 2006, 22:50:49
Only one topic per question please.   ;)

If you post in the wrong board ask a moderator to move it for you.

*locking*


Planck