Home   Help Search Login Register  

Author Topic: a.i groups alarm & pursuit  (Read 609 times)

0 Members and 1 Guest are viewing this topic.

Commando

  • Guest
a.i groups alarm & pursuit
« on: 19 Oct 2003, 03:24:28 »
Hi all at ofpec! I got a question, is there a way to make several a.i groups go after the player or players or west soldier that got detected when the west are detected by east by using triggers and no scripts?

_hammy_

  • Guest
Re:a.i groups alarm & pursuit
« Reply #1 on: 19 Oct 2003, 05:48:45 »
West detected by East
On Activation: soldierone dofollow soldiertwo
« Last Edit: 19 Oct 2003, 05:49:13 by HAMMY »

_hammy_

  • Guest
Re:a.i groups alarm & pursuit
« Reply #2 on: 19 Oct 2003, 05:51:41 »
or you could try
soldierone domove soldiertwo

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:a.i groups alarm & pursuit
« Reply #3 on: 19 Oct 2003, 14:41:10 »
You will need to use at least a line or two of code.    If you want the AI groups to chase the player across the map you will need some kind of simple looping script, otherwise they will go to where the player was at the time the command was issued and stay there.  

How about this.   Create a seek and destroy waypoint for the chasing group.   Use a switch trigger to switch the group into this waypoint at the appropriate moment.    The switch trigger also starts a little script, something like this:-

; this script moves the S&D wp to the player's position

#loop
~10
? stopChase: exit
[ChaseGrp1, 3] setWPPos getPos player
[ChaseGrp2, 3] setWPPos getPos player

goto "loop"


where stopChase is a variable you can set to true to end the script and 3 is the index of the S&D waypoint.   Syntax not guaranteed, this is not a tested script it's just a suggestion.  

Alternatively you could have lots of triggers, each with some kind of doMove or setWPPos command.
 
 


Plenty of reviewed ArmA missions for you to play