Jump to content


Photo

Putting enemy units on guard mode in world builder


  • Please log in to reply
2 replies to this topic

#1 Agile

Agile

    title available

  • Project Team
  • 944 posts

Posted 15 December 2003 - 09:46 PM

How do I make a guard range so that if any of your units enter the area the AI will attack them? I know nothing at all about the WB, so any help would be appreciated
Posted Image

#2 Destroyer

Destroyer

    Byte me

  • Members
  • 2,305 posts
  • Location:My back pocket
  • Projects:Having fun
  •  Just this guy, you know?

Posted 15 December 2003 - 10:12 PM

It involves polygons and scripts. I'd help more, but I just recently uninstalled Generals.

#3 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 05 February 2004 - 09:29 PM

1st - on your map surface you need to define the area you want the units to guard. Using the POLYGON tool, you click a series of (points) the will form a shape. You will see a field that will allow you to name the polygon. There are some defaults but ignore them for now. Name the poly GUARD_AREA1 or something.

2nd - create a team under the teams screen. Teams screen will allow you to pick the units on the team. The computer will try to build the team built on the priority level you set for the team.

3rd - Write the scripting. The most detailed part but still not hard. Choose NEW SCRIPT, name the script. Under the if true tab, find the script from the drop down TEAM GUARD AREA or something like that. You will then change the generic unit to the name of the team. Change the name AREA to the polygon area. Hit save. Walla. Need more help just add a reply here.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users