AdrianeMapMaker
9 years ago
Hi Guys Just Let me Say The Question

I Making a Team and Im About thinkin is it possible that your makin a Pathway and Making it Split into two and with the same end like this :
UserPostedImage
is it possible for the ai to Follow this???
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Sponsor
Annihilationzh
9 years ago
You spent a while creating a picture when you could have spent that time answering your own question by testing it.

You confuse me.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
klingondragon
9 years ago
Yes, it does work. Or at least it seemed to work on my 'multiplayer 1v1' map.
zero hour mad map maker
9 years ago
Yep, you can totally do that Adriane! I do it all the time in skirmish or mission maps. The Ai will follow the path up to the point it splits, and then randomly selects one to travel along until it merges back together again, if that makes sense.
Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
acidbrain
9 years ago
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...

UserPostedImage

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.

UserPostedImage

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
Panem et kirkinses
AdrianeMapMaker
9 years ago
thanks guys😁


By The Way Merry Christmas!!!😂
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




zero hour mad map maker
9 years ago
Merry Christmas to you too! 😃
Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
acidbrain
9 years ago
Ho Ho HO, Merry ChristMass to everyone so that includes you also Klingon...😛
Panem et kirkinses
klingondragon
acidbrain
9 years ago

What if I'm Jewish?

Originally Posted by: klingondragon 



I was just f'ing around, why do i get the feeling that you are not jewish...
Panem et kirkinses
klingondragon
9 years ago