chris5957
  • chris5957
  • 65% (Friendly)
  • Private Topic Starter
15 years ago
ok i have learned how to make vehicles,planes etc. follow a path. i cant get any soldiers to follow a path. the goal is to make a team to patrol around some of the resources to make it harder to get to them. i have tried the script if unit exists and alive and the conditions if true, follow waypoints exactly, like the vehicles but the soldier will not follow the path. then i have tried placing him in an area and practiced with the scripts to make him attack anything that enters into his area but still doesnt work. So is thier a script to put all this into action? oh yeah i even tried to make a raptor flying around some oil dereks and the script for that worked very well but i couldnt get it to attack anything either. tried many different scripts. this is hard and aggravating. pleaase help me!
Sponsor
Drummin
15 years ago
Make two Subroutine scripts setting [S A nd], one to follow pathway, the other to hunt. Under the teams behavior tab, set the follow pathway script as the On Create and All Clear action. Set the Hunt script for IF enemy spotted. Make sure the team/player is set as enemy to other players.
chris5957
  • chris5957
  • 65% (Friendly)
  • Private Topic Starter
15 years ago
ok ive made three china tank hunters follow a path and its working fine. now i cant figure out what you mean when you say: "Under the teams behavior tab, set the follow pathway script as the On Create and All Clear action. Set the Hunt script for IF enemy spotted. Make sure the team/player is set as enemy to other players."
i found the behavior tab in the "edit teams" selection under the edit tab but i dont kno wmuch about that. im not even sure how to make a team. i just have 3 individual units running in a circle and im trying to make them attack anything that comes in range. i hope im not asking to much but do you have a step by step text of the scripts needed to make this work? cause i am lost now. ive tried everything i know to figure out what your saying but i cant make them attack anything. thanks for you reply
Drummin
15 years ago
Hey Chris,
It's not too hard once you get an understanding of what's going on. See if this post  helps for creating teams.
As far as your placed tanks, what is going to matter is if this is a mission or skirmish map. If it's a mission map then there's no problem. Create an extra player that's an enemy to all, create the team under this player and place the units belonging to the team. Make the subroutine scripts as I said using '' as the team name and assign these subroutine scripts for the behavior as I mentioned.

The problem with doing this type of thing for a skirmish map is there would be no active player in the game. Also plyrcivilian doesn't support sub-teams well so creating a team under plyrcivilian won't help. Your best bet in this case is to assign the units to plyrcivilian, name each one of them, tell each unit to patrol path and set plrycivilian as an enemy to all players. I did a quick setup map to show you. NOTE: ALL structures which you would normally assign to plyrcivilian should be assigned the neutral player instead so things like supply docks and oil derricks will work.

Hope this helps.
Drummin

NOTE: The attached map is for Zero Hour.   testpatrol.zip (5kb) downloaded 92 time(s).
chris5957
  • chris5957
  • 65% (Friendly)
  • Private Topic Starter
15 years ago
hey man a really appreciate your help and response, ill try this is out. im sure ill get it down soon.