Results 1 to 5 of 5

Thread: Have ambient units proform animations, unless under attack.

  1. #1

    Have ambient units proform animations, unless under attack.

    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.

  2. #2
    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...
    Engima spells E-n-G-I-m-a

  3. #3
    Sounds like you need an FSM (Finite State Machine), which can be an intimidating process to learn.

    http://community.bistudio.com/wiki/FSM

  4. #4
    Private First Class
    Join Date
    Feb 25 2012
    Posts
    18
    Author of the Thread
    Well, That scared me off - I got right down to getting the flow chart drawn up, then saw what came next..... Thanks anyway.

  5. #5
    Hah, no kiddin! FSM scares me too. heh

Similar Threads

  1. Script to make enemies attack ambient life?
    By Rozza333 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Aug 5 2012, 13:53
  2. Unwanted units in Ambient Combat
    By kirkherbstreit in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: Jun 2 2012, 05:15
  3. Way to send enemy units to attack you when detected
    By Colosseum in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 9
    Last Post: Oct 6 2011, 20:34
  4. Ambient combat with Lingor map and units
    By scw1996 in forum ARMA 2 & OA - GENERAL
    Replies: 2
    Last Post: Apr 23 2011, 08:04
  5. Ambient Civilians, Ambient Vehicles and Ambient Animals in Multiplayer
    By Wolffy.au in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 46
    Last Post: Nov 2 2010, 19:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •