Jump to content
Sign in to follow this  
cms81586

How do you get a soldier to stay in one place?

Recommended Posts

I cannot get a soldier to defend one spot and stay there, like in a bunker. How do you get them to stay still? Also, how do you get a soldier to enter the large bunker? Do you use the "get in" waypoint?

Share this post


Link to post
Share on other sites

to make it stay put enter in the initialization:

UnitName SetCombatMode "Yellow"

UnitName SetUnitPos "Up"

UnitName AllowFleeing 0

Also avoid using groups.

The Ai is just plain stupid when it comes to buildings.

Try making a gamelogic unit and place it where you want the soldier to go to. Then create a trigger where the AI usually screws up. Enter in "On Activation" :

UnitName Setpos [getpos gamelogicName select 0, getpos gamelogicName select 1,.5]

try also : UnitName setdir (0-360)

might help smile.gif

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  

×