• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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