OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: laggy on 08 Jun 2010, 22:51:11

Title: Making AI units hide within a certain radius.
Post 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
Title: Re: Making AI units hide within a certain radius.
Post by: h- on 09 Jun 2010, 08:12:19
Quote
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..
Title: Re: Making AI units hide within a certain radius.
Post by: laggy on 09 Jun 2010, 19:29:25
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
Title: Re: Making AI units hide within a certain radius.
Post by: h- on 09 Jun 2010, 21:54:59
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..
Title: Re: Making AI units hide within a certain radius.
Post by: nikita320106 on 18 Jun 2010, 12:51:18
may be something like
Code: [Select]
_x commandRadio "SentCmdHide" will be enough??
Title: Re: Making AI units hide within a certain radius.
Post by: Wolfrug on 18 Jun 2010, 14:19:07
@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.
Title: Re: Making AI units hide within a certain radius.
Post by: Manzilla on 19 Jun 2010, 20:47:49
Yes, I'm curious to see what it actually does as well. Using the radio would be fine with me, and useful too.
Title: Re: Making AI units hide within a certain radius.
Post by: nikita320106 on 24 Jun 2010, 08:40:32
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)
Title: Re: Making AI units hide within a certain radius.
Post by: F2kSel on 24 Jun 2010, 14:43:27
Although it broadcasts the command it doesn't seem to have real effect on units when I've tried it.
Title: Re: Making AI units hide within a certain radius.
Post by: twisted on 31 Jul 2010, 17:33:59
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.

Title: Re: Making AI units hide within a certain radius.
Post by: kju on 31 Jul 2010, 21:38:24
nikita320106  :good:

Works even for gestures.  :clap: