Well, in my experience the team doesnt travel as a whole team sometimes, the team splits up when it randomly chooses a path...
To have some more control you can make some generic scripts so you are certain that the team will follow the path as a whole...

Here is an example of the scripting
[S A nd][E N H]OnCreate
*** IF ***
True.
*** THEN ***
Have Team '<This Team>' follow Waypoint Path 'StartPath' , as a team is TRUE
[S A nd][E N H]StartPath_End
*** IF ***
Team '<This Team>' has reached the end of Waypoint Path 'StartPath'
*** THEN ***
Run Subroutine 'Coinflip'.
[S A nd][E N H]Coinflip
*** IF ***
True.
*** THEN ***
Set timer 'RandomPath' to expire between 0 and 20 frames.
Set timer 'FirstPath' to expire in 10 frames.
Enable Script 'FirstPath_Expired'.
[ns na D][E N H]FirstPath_Expired
*** IF ***
Timer 'FirstPath' has expired.
*** THEN ***
Run Subroutine 'First || Second'.
[S A nd][E N H]First || Second
*** IF ***
Timer 'RandomPath' has expired.
*** THEN ***
Have Team '<This Team>' follow Waypoint Path 'FirstPath' , as a team is TRUE
*** ELSE ***
Have Team '<This Team>' follow Waypoint Path 'SecondPath' , as a team is TRUE
[S A nd][E N H]Hunt
*** IF ***
Team '<This Team>' has reached the end of Waypoint Path 'FirstPath'
*** OR ***
Team '<This Team>' has reached the end of Waypoint Path 'SecondPath'
*** THEN ***
Team '<This Team>' begins hunting.
StartPath_End, First || Second and Hunt are Generic scripts.
The coinflip script isnt really needed, added it to make it more clear, you can execute the parameters in the StartPath_End script instead of making a seperate script.
Be sure that you make 2 seperate paths of Firstpath and Secondpath so dont connect the last to waypoints but put the last waypoints on top of eachother.

I have used this method many times and it works like a charm.
If you want to know a bit more about scripting random teams and paths check out
This thread...
Cheers
Edited by user
9 years ago |
Reason: Secret