OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: laggy on 08 Jun 2010, 22:51:11
-
Hi all,
Searched this forum, but only found a link to "dev heaven".
findCover and setHideBehind are apparently not implemented or at least not functional in ArmA2, right?
Does anyone have any good suggestions for how to make AI units (with AI leader) hide within let's say a 50m radius, finding a cover of some sort and stay there hidden?
setBehaviour "STEALTH" is not enough as the AI just lays on the ground, and I want them to use a bush, tree, haystack, house etc. of some kind.
Grateful for advice, want to avoid nearObjects if possible.
Laggy
-
findCover and setHideBehind are apparently not implemented or at least not functional in ArmA2
I think some commands work in .fsm only so those might be couple of those few.. :dunno:
Don't quote me on that hough but I remember hearing something like this back in A1 days..
-
Hmmm...
Thanks, that's a shame if it is true. I was really hoping to find an easier solution than the FSM enigma.
Does anyone have an idea for a workaround in SQF ?
Laggy
-
FSM isn't really that hard if someone explains it clearly, like in here (http://rte.jonasscholz.de/blog/2009/11/03/new-to-arma-2-fsm-scripted-fsm-by-xeno).
Of course it takes to while to get into it..
-
may be something like
_x commandRadio "SentCmdHide"
will be enough??
-
@nikita
I never even noticed the commandRadio command before - what, praytell, does it do? And where can you get the radio commands, since the BIKI is very unhelpful when it comes to examples and whatnot. But I guess that if you could access the default "take cover" routine (accessible via the radio) then maybe that would be simple and enough?
Wolfrug out.
-
Yes, I'm curious to see what it actually does as well. Using the radio would be fine with me, and useful too.
-
sure,
tested that, and alot of radio command from radio menu is worked.
but I'm think that should insert some pause after scripting command, cause radio_command broadcasting by side(or global) channel via radio_sound and chat and takes some time.
comands list we can get from CA_Dubbing config.
edit)
sorry for late response and badengliz)
-
Although it broadcasts the command it doesn't seem to have real effect on units when I've tried it.
-
this lack of hide is really a pain - especially when bis had findcover working and then removed it. solus' awesome slx has a script that does replaces but it would be useful to have a standalone.
-
nikita320106 :good:
Works even for gestures. :clap: