Jump to content
JoseRodriguez

AI Following Player in Safe

Recommended Posts

Hello,

 

I want AI to follow squad leader instead of player when in "Safe" or "Careless" mode.

 

Is it possible?

 

I actually want them to follow waypoint into village with squad leader by walking weapons down instead of pointing up like about to murder the whole village, but when in this mode, they just follow player which player is supposed to follow another waypoint. If there is any other way, I'll appreciate it.

 

Thanks,

Share this post


Link to post
Share on other sites

if it is the player s group

 

_group = group player;

_pos1 = getMarkerPos "yourvillagemarker";
 _wp = _group addWaypoint [_pos1,0];
 _wp setWaypointType "MOVE";
 _wp setWaypointSpeed "Full";
 _wp setWaypointBehaviour "SAFE";

_leader = leader _group;

units _group doFollow leader _group;

this in the init.sqf of the mission

 

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
11 hours ago, JoseRodriguez said:

Hello,

 

I want AI to follow squad leader instead of player when in "Safe" or "Careless" mode.

 

Is it possible?

 

I actually want them to follow waypoint into village with squad leader by walking weapons down instead of pointing up like about to murder the whole village, but when in this mode, they just follow player which player is supposed to follow another waypoint. If there is any other way, I'll appreciate it.

 

Thanks,

Please describe the problem detailed

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×