Jump to content

Recommended Posts

Hello everyone. Im having a problem with my AI in my mission going prone and become idiots. Its a beach assault map and many of them are behind barricades or bunkers and as soon as any gun shots start going off 90% of the AI soldiers guarding the beach go prone. That would be that big of a problem but they do not get back up ever and seem to lose all aggressiveness once they go prone. I see enemy soldiers walk by the prone soldiers and shoot them in the back and i've yet to see more than two try to shoot anyone while being prone in about 10 play tests. Is there anyway to force them to stay standing?

Share this post


Link to post
Share on other sites

anyone? It doesn't have to make them stay standing necessarily it would just be nice if they didn't become so useless.

Share this post


Link to post
Share on other sites

Like ProfTournesol linked. In your units INIT field just write: this setUnitPos "DOWN"

Share this post


Link to post
Share on other sites

You want the soldiers at the beach to stay in standin position and not prone, right? Then write this to the units init field:

this setunitpos "UP"

If you want Everyone in the beach to stay in standing position, you can use a trigger that covers all the units, in triggers settings you choose faction present, condition = this, then write this to the triggers activation field:

{_x setunitpos "UP"} foreach thislist

Share this post


Link to post
Share on other sites

Thanks Carpaazi it would be very useful to be able to do them all at once instead of individually. Sorry but would you mind explaining what you mean by linking them to a trigger so it will apply to all of them?

Share this post


Link to post
Share on other sites

you don't have to link anything to the trigger.

Just make a trigger that is "big" enough, so it covers the area where the units are you want to stand -> then from triggers "activation" choose the side those units belong to, like BLUEFOR/OPFOR/INDEPENDENT/CIVILIAN -> Then on the triggers "condition" field (where it says "this"), write "TRUE" instead -> Triggers "on act" field you write

{_x setunitpos "UP"} foreach thislist

The code sniff out trough the trigger how many units there is, what side the belong (set in the trigger) and simply makes them all stand

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  

×