Jump to content
Sign in to follow this  
Stryder

Dumb AI comes out of defensive emplacements!

Recommended Posts

I have a BIG problem. I'm making a mission where you attack a enemy held crossroads and it has various defensive emplacements. Whenever I'm still about 200m away all the AI come out of their positions and start attacking me out in the open. It's ok when just a few soldiers do this but when ALL do... The idea is that the enemy soldiers fire from behind their defensive emplacements. I've placed HOLD waypoints on the defensive emplacements so they shouldn't be doing this. Please help...

Share this post


Link to post
Share on other sites

Hmmm......... Try:

Unitname canmove FALSE

Share this post


Link to post
Share on other sites

Can you prevent a guy from going prone cuz the guys lie down in the bunkers when the enemy comes.

Share this post


Link to post
Share on other sites

Hey I had a bit of a problem with that too. If you set in the init field. this setcombatmode"yellow" they will stay where you put them. Bear in mind though that they can not be grouped and must be a lone unit, if they are grouped they will leave their position and try to rally around the group leader. to keep them standing behind their emplacement without going prone and falling through their cover use this setunitpos"up", It will keep them in the offhand position. set their behaviour to either combat or alert. I tried to find a way to make them take a knee and stay there so they can take better advantage of their cover, but no takers yet on that. Good luck

-Door_a_jar

Share this post


Link to post
Share on other sites

doStop unitName

canMove False is a bit strong, as the unit will be unable to move if it has to.

Perhaps

unitName doMove getPos positionName

could do the trick, as when you order a unit to move somewhere, they won't move afterwards. I don't know if the AI leader reissue another order to regroup everybody.

Whis'

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  

×