The "_" denotes locality of the variable, which could be an object, or a string, number, etc.
_localVar - local to this machine, this script
globalVar - local to this machine
"publicVar" - a little different, read up on it. Sent across the network.
I NEED TESTERS! Newest update, if it works for everyone, will be added to OP. I have found no bugs, so far.
NEWEST UPDATE -- FROM YESTERDAY
TONS of improvements, better AI pathing, distance checks, debug option, static option, more!
PLEASE TEST IT!!!
I believe you're right, thanks for pointing that out! Note that the last case will almost never be selected, so you might want to double it.
EDIT: fixed
That should work - that's what I meant - but there's no reason for you to have a whole other switch section, they can all be combined into one (less cpu load).
Also, damn that script is messy, is that really my most recent non-animated version? Needs to be cleaned up.
See my most recent...
Change the _ray value - should allow larger areas to be bombed.
Eventually I'll add a _ray selection to each target in my location array (gonna be a lot of work to figure out how far a radius to use) - but you could add this yourself (random worldspace part of the code) if you have custom...
RELEASE VERSION TESTING -- RC5 --- PERFECT ON MY SERVER!
Guys, before I add this to the OP, I need help testing - newest airraid script - 05/05/2013 7pmEST
UPDATE: LIVE! 7 PM EST may5 2013 RANDOM&STATIC ANIMAI
FINAL TESTING !!!! PLEASE REPORT STABILITY!
Installation: Just replace old...
Make sure you're using the newest version FINAL RELEASE COMING WITHIN 24HR
New version: http://pastebin.com/LR3LEaHf RC2 (static option, optimized, prewaypoints testing) 1030pm THIS BUILD TESTING
New version: http://pastebin.com/VrXR99mv release candidate
6pm EST THIS BUILD STABLE
This is what...
Thanks man!
I totally agree, the AI pilots suck (who crashes into a mountain?!) that's just arma for ya.
In the new version, chopper should stop and hover if it can (can the Mv22? Haven't seen it yet since the update EDIT: no it cant, with sometimes explosive consquences. choppers work great...
Typo in my comment. Should be true or false, never a number.
You're not the first to report that it works without rmod! Great news, but I still don't think that will work for everyone.
Going to install Sarges AI tomorrow on my test server when I get a chance - and look into how he calls for AI spawns and see what we can do about getting them to spawn nicely from my script.
@All
Update is working well, very functional.
May be having trouble with getting the siren loop to...
Only for the custom buildings you've added in the database. Which work maybe 75% of the time for me.
Map buildings are loaded somewhere else - we need to find where it loads the default chernarus map, and make sure that the buildings on it are loaded before.
UPDATE: LIVE! LAST UPDATE 1030 PM EST may2 2013 RANDOM ANIMAI
will be added to OP after further testing.
Installation: Just replace old server_airRaid.sqf with new one in dayz_server.pbo!
<<< http://pastebin.com/LR3LEaHf >>> NEW at 1030pm EST
---------------Damn we updatin, son! RC2 -...
Try changing _choice to 1
If you've got sirens, and the choppers are getting there - everything is working as expected, except maybe you can't display that bomb type for whatever reason. Try light - i know it works for sure, well, I think.
No errors in your RPT? anything about killed a...
Looks like the bomber exploded before it got past the siren start.
Basically the code waits until the bomber is within a certain distance, then starts the sirens - but if the bomber dies before it gets there, code just waits forever. Fixed in new version, which is just going into testing right...
You are correct in that it will only run while repeat > 0.
If you want infinite, change the while loop
while (_repeat > 0)
To
while (true)
And the while loop will run forever.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.