Best way to follow the leader
Moderator: Moderators
Best way to follow the leader
hi. in the map im making, i want the ai to follow the captain. so far what ive been doing is set up the nodes for the leader, and in the script, i put the other friendlys' destination to "level.captain" (the leader). everything works, but when the leader stops at the end, the other guys come up to him and 'merge' into him, creating a 4 headed 8 arms/legs freak. i dont want to make them all just follow nodes, because something will happen and one of the privates will be in front leading the way. i was wondering the best way to get privates to follow a captain without leading the way themselves. one way i thought of is setting the privates' tether to the captain, and giving them a distance of about 512. that way, they would always be dragged along by the captain. the problem with that is i dont want them to stay by him during battle. is there anyway i can temporarily disable the leash during combat? plz put lots of comments in your scripts because im still learning. 
