Jump to content
Sign in to follow this  
kocrachon

Make unit follow group

Recommended Posts

I am trying to come up with something that should be easy but I cant seem to think of way to do it.

I want to have a unit follow the leader of a group (no matter who that leader is, if say, the original dies and a new person takes over) with out it being in the group. I am making a rescue mission, and I want it so that the AI unit follows the group (which consits of multiple players) with out the group having the ability to command him. I just want him following the leader at all times. And then once he gets to the extract area, then he moves on and gets in the helicopter.

Share this post


Link to post
Share on other sites

something like:

while {alive _follower} do

{_follower doMove position (leader _grp);

sleep 5;

}

_grp being the group you want to be lead the unit

Should work?

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
Sign in to follow this  

×