Tyger
Can anybody tell me what's wrong with this script?
I tried to execute it two ways, and both were wrong.
ArtilleryBarrage.sqs_shell = _this select 0
_centre = _this select 1
_area = _this select 2
_freq = _this select 3
_rounds = _this select 4
_centrePos = getMarkerPos _centre
_cx = _centrePos select 0
_cy = _centrePos selct 1
_areax2 = _area * 2
#Update
_rounds = _rounds - 1
"_shell" CamCreate [_cx + Random(_areax2) - _area,_cy + Random(_areax2) - _area,0]
~_freq
? (_rounds > 0) : goto "Update"
exit
:help:
I tried to execute the script in two ways. The first was this: ["HEAT120",artilleryMkr,50,0.5,20] exec "ArtilleryBarrage.sqs", and the second was like this: [HEAT120,artilleryMkr,50,0.5,20] exec "ArtilleryBarrage.sqs". Do I need to set my trigger to 'Switch'? I had it activated by a radio command. So, got any ideas?!?
I would be greatful if anyone could help me solve this problem. This is my first script I have written, and my esteem goes down when someting goes wrong.
Cheers! :cheers: Tyger