Jump to content
Sign in to follow this  

Recommended Posts

Hey,

I see that findCover no longer works in ArmA 2. First, why? Why take out an important functional command? Second, how are we supposed to script units to find cover now without going through a long complex script of finding nearest objects, somehow detecting them as cover and then move the npc to use them as cover?

Share this post


Link to post
Share on other sites

Without having noticed yet that findCover no longer works (is it really broken? How about an example? And where's the CIT ticket?), have you tried to simply give the group a STEALTH waypoint? Don't they find cover on there own good enough now?

However if everything fails, I suggest you try to work closely with specified objects, either by chosing the location carefully, searching them at a random spot or you may aswell spawn some too.

Having cover-objects of specified classes allows you to easily place your soldiers into cover with modelToWorld in combination with either a moveTo/waitUntil unitReady/doStop or setPos/doStop and then you can aswell make them go crouch or lay down with setUnitPos.

Figure out the combats main direction, let's find/have a handfull of such objects and write a simple script, that returns the cover-position, given an area and the main combat direction.

Share this post


Link to post
Share on other sites

The problem with stealth is that they tend to just throw themselves flat too much even when cover is just a few meters away.

Using setunitpos you can keep them standing but it's not always what you want.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×