OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: stephen271276 on 05 Feb 2011, 22:54:45
-
Hi at the start of a mission I have a group of ai kneeling ang shooting targets using >>>>> m1 setunitPos "middle"; this disableAI "move"; m1 commandTarget t1; <<<< in a trigger
Now this is just for realism as the player will find them training by shooting att targets in a camp...... I need to know how to using a "BLUFOR detected by OPFOR" trigger to then cancel all that out and the ai to just act normal by attacking the player.....
Ive tried thr detect trigger to delete the first trigger but the ai just stay kneeling?
-
If I understand what you are wanting then use
m1 setUnitPos "auto"to return them back to being able to function as the situation demands.
edit:
Apologies, I totally forgot about reenabling the AI's ability to move.
Apparently I can't read the whole question :-[
-
Yep.
m1 setunitpos "auto"; m1 enableAi "Move";
Should be enough :) Easy enough.
Wolfrug out.
-
^--- Thats the one.