• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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?
 
Level 6
Joined
Mar 17, 2008
Messages
150
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
 
Level 3
Joined
Jan 2, 2008
Messages
20
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 :)
 
Status
Not open for further replies.
Top