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

freekin gate opening

Status
Not open for further replies.
Level 2
Joined
Feb 23, 2006
Messages
6
ive been trying for like an hour to get this stupid gate to open when my hero attacks the lever. i have two gates, one behind the other and i would like them both to open when i right click with my hero on the lever and then close when i click it again


plz help
 
Level 8
Joined
Nov 20, 2005
Messages
372
hey ya

Make a trigger like that

( at beginning - map initialisation )

Set Lever[1] = Level 0000 <gen> ( youre lever )
Set Gates[1] = Door (horizontal) 0001 <gen>
( Your Gate 2 )
Set Gates[2] = Door (horizontal) 0002 <gen>
( Your Gate 2 )
Destroyable - Make Gates[1] Invulnerable
Destroyable - Make Gates[2] Invulnerable

Now make a new trigger

Destroyable - A destructible within (Playable map area) dies

(Dying destructible) Gleich Lever[1]

Destroyable - Resurrect Lever[1] with (Max life of (Dying destructible)) life and Zeigen birth animation
Destroyable - open Gates[1]
Destroyable - open Gates[2]
Wait 5.00 seconds
Destroyable - close Gates[1]
Destroyable - close Gates[2]

Variables
~~~~~~~~~

Lever [ Destroyable ] - Array 1
Gates [ Destroyable ] - Array 2

Hope that helps!
 
Status
Not open for further replies.
Top