Forum Jump :

Author Message


Posts: 5
Rank:


Level: Member

Country: br
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2017-02-25 17:56        
     
On a mission an IA group has two streets to choose to pursue, how can I do it so randomly that the group has the waypoint right or left?


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 57
In-game name: Kobayashi Maru

 
#2 Posted at 2017-02-25 19:30        
     
You must script something with your condition.
call {
  if (something true) exitWith {
    myGroup addWaypoint [apositionHere, 0];
    <all waypoint behavior here>;
  };
  if (something else true) exitWith {
    myGroup addWaypoint [anotherpositionHere, 0];
    <all waypoint behavior here>;
  };
};
See addWaypoint.

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS





Tags: Ai, Waypoints