Jump to content
Sign in to follow this  
commandercaleb

How to remove prone for an AI?

Recommended Posts

So, i've looked everywhere and I keep coming across commands that make the AI just stay still and be in a crouch position or standing up position.

Is there a trigger command to just make the AI not go prone at all but still able to go into the other two stances?

Thanks!

EDIT: {_x setunitpos "UP,"} foreach thislist; seems to work but they only stand up, I want the units to be able to choose between crouching and standing up.

Edited by CommanderCaleb
  • Like 1

Share this post


Link to post
Share on other sites

AI don't have "choice"! You have to decide in which case Ai are up or crouch. Or you can do a random possibility with _array = ["UP", "MIDDLE"]; {_x setunitpos _array select (floor random 2)} foreach thislist;

Share this post


Link to post
Share on other sites

One way to accomplish this would be to check the AI units stance every X seconds and if it's prone then randomly pick crouch or stand up. Wouldn't be very fast if you had lots of AI though...

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  

×