Home   Help Search Login Register  

Author Topic: How to set an ai back to its normal behaviour??  (Read 2533 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
How to set an ai back to its normal behaviour??
« 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?

Offline Denz

  • Former Staff
  • ****
Re: How to set an ai back to its normal behaviour??
« Reply #1 on: 05 Feb 2011, 23:45:10 »
If I understand what you are wanting then use
Code: [Select]
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  :-[
« Last Edit: 06 Feb 2011, 21:52:58 by Denz »
I've got 'em right where I want 'em - surrounded from the inside!
Jerry "Mad Dog" Shriver, SOG Recon One-Zero
24/09/41 - 24/04/69

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: How to set an ai back to its normal behaviour??
« Reply #2 on: 06 Feb 2011, 12:28:00 »
Yep.

m1 setunitpos "auto"; m1 enableAi "Move";

Should be enough :) Easy enough.

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline Bingoz

  • Members
  • *
Re: How to set an ai back to its normal behaviour??
« Reply #3 on: 12 Feb 2011, 07:14:30 »
^--- Thats the one.