HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Gate Problem !

01-10-2004, 07:43 PM#1
w4r_killer
I tried to make Gates which can open and close by a spell annother unit has. I can open and close the gates but if the gates dies i just click on "Close Gate" and its back. I want the gate be destroyed for ever and not come back. How can i make that ? I tried some things. For example:
Event:
Destruct. Doodad dies
Condition:
Dying Doodad is ...
Action:
Trigger - Turn Off XXX

But it didn't worked.
It seems that WC3 things that a open gate is dead.

Pls help me.

( Sorry for my bad english :D )
01-10-2004, 07:57 PM#2
Mr. Euthanasia
I recently discovered that opening a gate counts as if the gate had died. So when you close it, it comes back to life. Use a boolean variable that is set to false once the gate dies. For your open close trigger have a condition that is:
Condition- gateDead(boolean variable) = false


Event - Doodad Dies
Condition -
Actions - set gateDead = true

Event - Unit casts your open gate spell
Condition - gateDead = false
Actions - Open Gate
01-10-2004, 11:48 PM#3
Newhydra
...when you open a gate it counts as killing the gate thus gate dies triggers will be set off. At least that is how it worked in the beta...may have changed ;)

To get around this have a 2nd boolean whic is set to true just before you open the gate, then if it is true and the gate died set it to false and do nothing else, otherwise turn off the open gate trigger.
01-11-2004, 12:45 AM#4
Mr. Euthanasia
It didn't change, opening a gate is the same as a gate dying so yes you would have to have a second boolean variable.