• 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.

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