hpat 1 Posted August 22, 2012 In line with my previous post, I also need a way to have ambient units (that I placed) preform various animations in an infinite loop (At my base, although I realize saying that won't help finding a solution :) ). But I also need a way to create a clause where they can break out of that loop, to defend the base, when it is under attack, and return to their animations after the attack is over. Notes: By defend, I really just mean stop doing their animations, and stand up, ready to shoot if they see an enemy. I only what them to return to their animations, if they are medic fit - If not, they lie on the ground as normal, until a medic comes and helps them. :) Thanks again. Share this post Link to post Share on other sites
engima 328 Posted August 22, 2012 I have not done this, but what about having the loop check the animated unit's combat mode? If the combat mode is "SAFE", then you should be able to detect them being attacked by monitoring the combat mode change. Just a thought... Share this post Link to post Share on other sites
h34dup 148 Posted August 23, 2012 Sounds like you need an FSM (Finite State Machine), which can be an intimidating process to learn. http://community.bistudio.com/wiki/FSM Share this post Link to post Share on other sites
hpat 1 Posted August 23, 2012 Well, That scared me off - I got right down to getting the flow chart drawn up, then saw what came next..... Thanks anyway. Share this post Link to post Share on other sites
kylania 568 Posted August 23, 2012 Hah, no kiddin! FSM scares me too. heh Share this post Link to post Share on other sites