Hey there ladies and gentlemen,
Firstly, hi! I'm kind of new here. I did read around here for a long time but I felt a bit intimidated by the complexity of some things and didn't dare to post because of that. >.<
Anyway, as to my question, which is probably very simple/obvious but trust me I have tried really hard to find an answer, looked through other people's SQF scripts, tutorials etc, but yeah... here goes.
I am trying to make a tiny little script to keep the artillery in the secops manager available, even when allready used. Now the radio trigger works of course but it's not very neat coz all players would see it. I'd prefer that the player would automatically get a new arty strike available. This is for multiplayer by the way, allthough I'm not sure that matters much in this case.
So yeah I find .sqs a little easier for some odd reason, but in this case I had to use a SQF command namely "waitUntil {_battery getVariable "ARTY_SPLASH"};" which resulted in an error when I used it in sqs, I think.
This is what I'm trying to do(BABUSHKA is the name of my arty module, FO is the forward observer-player):
#start;
waitUntil {BABUSHKA getVariable "ARTY_SPLASH"};
sleep 15 (so it has time to actually say 'splash out' in response to the artillery operator)
[["artillery_barrage"], FO, [[BABUSHKA, [1,2,3,4,5,6,7,8,9]]]] call BIS_SOM_addSupportRequestFunc;
goto "start";
Now before you facepalm, I _do_ realise goto isn't used in sqf, and that's where my problem lies. Now I'd only be able to re-add the artillery strike once, while I want to make it indefinately available.
Can anyone help me convert this to SQF, or find a better (probably way obvious) solution to what I'm trying to achieve?
Thanks a lot in advance for taking your time to read this and your patience.
Kimmy