Hey all, howzit? Okay so I created (created, copied - 'meh

) a script to simulate artillery, following steps in the editing guide by Mu.Murray. The good news is that I've got it working and am happy with it - for the most part. I've got a few kinks that I need to iron out. But first I'll put the scripts up.
Setfire.sqs:
setfire=true;
titleText ["Requesting fire-mission, over","plain down"];
~3
W1 sideChat "Affirmative. Guns ready, awaiting coordinates, over."
onMapSingleClick "ATarget setPos _pos; setfire=false";
@!setfire;
"Firepoint" setMarkerPos getPos ATarget;
onMapSingleClick "";
[] exec "artillery\single_salvo\single_salvo.sqs";
titleText ["", "plain down"];
~15
"Firepoint" setMarkerPos [0,0] ;
exit;
Single_Salvo.sqs:
titleText ["Coordinates sent, confirm, over.","plain down"];
~3
W1 sideChat "Confirmed, single-salvo, shot."
playSound "Firedirection";
~10
;+ + + Fire + + +
[W1,ATarget] exec "artillery\single_salvo\fire.sqs"
[W2,ATarget] exec "artillery\single_salvo\fire.sqs"
[W3,ATarget] exec "artillery\single_salvo\fire.sqs"
[W4,ATarget] exec "artillery\single_salvo\fire.sqs"
[W5,ATarget] exec "artillery\single_salvo\fire.sqs"
[W6,ATarget] exec "artillery\single_salvo\fire.sqs"
W1 sideChat "Rounds complete."
~5
W1 sideChat "Splash."
exit
Fire.sqs:
_K = _this select 0;
_Z = _this select 1;
_X = getPos _Z select 0;
_Y = getPos _Z select 1;
_K doWatch [_X,_Y,5000] ;
_A =_K Ammo "M119";
~5
_K fire "M119";
@ _A > _K Ammo "M119";
~2
_N = nearestObject [_K,"HeatM119"];
_X = _X+((random 80)-40) ;
_Y = _Y+((random 80)-40) ;
_H = "HeliHEmpty" createVehicle [_X,_Y] ;
~1
_H say "Ari";
~1
_N setPos [_X,_Y,0];
"SH_125_HE" createVehicle [_X,_Y,0] ;
deleteVehicle _H;
exit
Now, for my problems.
- With single_salvo.sqs, I'm having problems with playSound Firedirection. In-game, I get the message "Sound firedirection not found". Referring to Mr.Murrays manual it says the sound has to be defined in the description.ext. Couldn't figure out how to do it.
- I have several different radio commands, 'single salvo', 'two-round salvo', 'smoke' and 'illumination'. How do I make a 'fire-for-effect' option where the guns fire until they're told to stop? Obviously this would be two radio commands fire/stop ... again how?
- Lastly, how do I wrap all this up into a nice furry little bundle of artillery-goodness and make it accessible to to only one unit - namely a 'Forward Observer'?
If I can solve these problems, I'll be a happy camper. Any help, advice and/or suggestions will be much appreciated -
