Jump to content
Sign in to follow this  
brad7

Help with enemy ai

Recommended Posts

Cant figure out how to do this i need an enemy Ai to fire at bluefor from a distance but not move at all if it is possible?

Share this post


Link to post
Share on other sites

I know about this but will they still fire?

Share this post


Link to post
Share on other sites

Set the unit's init to this

this setUnitPos "DOWN";this setBehaviour "AWARE";this setCombatMode "RED";this disableAI "MOVE";

You can change the setUnitPos to "DOWN" = prone, "MIDDLE" = kneeling or "UP" = standing up.

Share this post


Link to post
Share on other sites

Cheers for that works great!

Share this post


Link to post
Share on other sites
Cheers for that works great!
For info when you set any unit to 'this disableAI "MOVE";' you can come up behind the unit and it will not turn and face you. Even if you shoot them. Not very realistic.

What I normally do is set a trigger around any diableAI units, where if BluFor is detected within a certain radius then set the units to enableAI "MOVE";

For example. Add an OpFor marksman and call him Sniper1, face them in the direction you want and set their init to this.

this setUnitPos "DOWN";this setBehaviour "AWARE";this setCombatMode "RED";this disableAI "MOVE";

Now create a trigger around them with the following:=

Axis A = 30

Axis B = 30

Activation BluFor

Once

On Act: Sniper1 enableAI "MOVE";

This means you can't just walk up on them. They will defend themselves when you get within 30m. Even if you come up behind them.

Edited by Beerkan

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  

×