OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: twisted on 25 Oct 2009, 02:10:11

Title: replacement for findcover?
Post by: twisted on 25 Oct 2009, 02:10:11
Hi. I was sad to see that now findcover does not work in scripts.

Does anyone here know a subsitute for this functionality?

it is an essential command in arma2 and it is pretty frustrating to lose it as it really helped create scripts that made AI move to cover when under fire.

Title: Re: replacement for findcover?
Post by: kju on 26 Oct 2009, 21:17:56
Check here:
http://dev-heaven.net/issues/show/2016#note-24

In BIF someone else also made a thread about it.

Basically use nearestObjects without class and filter out unneeded.
Might cause performance issues though..