• 🏆 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!

[Trigger] Door open/close triggering! Need Help

Status
Not open for further replies.
Level 3
Joined
Sep 9, 2010
Messages
33
Hey guys I been working on this map, and I'm having trouble with the door triggering.

I am trying to make it so when a unit get close to the door (destructible), it will open.

As well when any unit is away from the door is will close.

So can anyone help me out, or link a guide to help me out.
:goblin_yeah:Thx for reading.
 
Level 5
Joined
Jan 4, 2007
Messages
103
This?:

  • Events
    • Unit - A unit enters Your Region <gen>
  • Conditions
    • (Entering unit) Equal to Your Unit
  • Actions
    • Destructible - Open (Your Gate)
And the second trigger:

  • Events
    • Unit - A unit leaves Your Region <gen>
  • Conditions
    • (Leaving unit) Equal to Your Unit
  • Actions
    • Destructible - Close (Your Gate)
Just create a region where your gate is, when the unit enters the region it will open, when the unit leaves the region, the gate will close ect. Hope it helps:)
 
Status
Not open for further replies.
Top