• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Gate House Problems

Status
Not open for further replies.
Level 3
Joined
Jan 2, 2008
Messages
20
OK in my map i am using gate houses to open and close my gates
I can make them open and close perfectly fine but when the gate dies all they have to do is hit the open or close skill again and the gate is fully repaired...
Any way i can fix this without using JASS?
 
Try this:

Code:
Iron Gate Open
    Events
        Unit - A unit enters Iron Gate <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        Destructible - Make Iron Gate (Diagonal 2) 0000 <gen> Invulnerable
        Destructible - Open Iron Gate (Diagonal 2) 0000 <gen>

Code:
Iron Gate Close
    Events
        Unit - A unit leaves Iron Gate <gen>
    Conditions
        ((Leaving unit) is A Hero) Equal to True
    Actions
        Destructible - Make Iron Gate (Diagonal 2) 0000 <gen> Invulnerable
        Destructible - Close Iron Gate (Diagonal 2) 0000 <gen>

You can make it invulnerable in Map Initialization
 
sure, just turn off the gatehouse trigger for that unit when it dies, the turn it back on when it is repaired

Wont work - the gates i use are destructables not units, and they are open they are considered as dead to warcraft

Try this:

Code:
Iron Gate Open
    Events
        Unit - A unit enters Iron Gate <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        Destructible - Make Iron Gate (Diagonal 2) 0000 <gen> Invulnerable
        Destructible - Open Iron Gate (Diagonal 2) 0000 <gen>

Code:
Iron Gate Close
    Events
        Unit - A unit leaves Iron Gate <gen>
    Conditions
        ((Leaving unit) is A Hero) Equal to True
    Actions
        Destructible - Make Iron Gate (Diagonal 2) 0000 <gen> Invulnerable
        Destructible - Close Iron Gate (Diagonal 2) 0000 <gen>

You can make it invulnerable in Map Initialization

I dont want to make the gates invulnerable, and it also has nothing to do with units entering anything

Thanks for all the help though so far - no matter how wrong it may be :D
Please tell me if i have made a complete ass of myself and am missing the point to one of your posts . . .probably have :)
 
Yeah, i am also wondering about how this will work - please reply!
 
Red - when the gate is open it is considered dead by warcraft, so that doesnt work
 
Status
Not open for further replies.
Back
Top