HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Regions and Towers

12-22-2002, 06:00 AM#1
Guest
I'm trying to create a trigger that fires whenever a Guard Tower has been built within a certain Region.

Naturally, I can't use Unit Enters or Unit Leaves Region since Towers don't travel. (Hmmm...now that's an idea...)

I need a method for seeing what a region contains, not what has entered or left it.

How can I write a trigger that essentially says...


Event
Every 2 seconds of gametime...

Condition
Region CONTAINS a Guard Tower

Action
Do whatever...


I haven't figured out how to check whether a specific region contains an item or a unit.

I tried using
If Unit of Type GuardTower enters Region.

This worked as soon as I started bulding a guard tower, but I don't want the action to run until the tower is complete. I then tried adding a condition for the tower to have a Life of 500, but this didn't work either because the tower only "enters" the region one time, when it is first starting to be built.

Any ideas? Thanks!!