• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

GUI Trigger

Status
Not open for further replies.
Level 5
Joined
Apr 8, 2009
Messages
130
Hello I'am wondering how to make a trigger that when you kill a lever you die instantly

I tried:
  • Lever
  • Events
    • Destructible - Lever Dies
  • Conditions
  • Actions
    • Unit - Kill (attacking unit)
wont work
 
Level 5
Joined
Apr 8, 2009
Messages
130
Nope didn't work

Here is the trigger exactly:
  • Die Lever
    • Events
      • Destructible - Lever 0053 <gen> dies
    • Conditions
    • Actions
      • Unit - Kill (Killing unit)
      • Wait 2.00 seconds
      • Destructible - Resurrect Lever 0053 <gen> with (Max life of Lever 0053 <gen>) life and Hide birth animation
 
Level 24
Joined
Mar 23, 2008
Messages
1,813
  • blaba
    • Events
      • Destructible - Summer Tree Wall 0000 <gen> dies
    • Conditions
    • Actions
      • Set Killing_Unit = (Killing unit)
      • Unit - Kill Killing_Unit
      • Set Killing_Unit = No unit
      • Wait 2.00 seconds
      • Destructible - Resurrect Summer Tree Wall 0000 <gen> with (Max life of Summer Tree Wall 0000 <gen>) life and Show birth animation
Create one Unit variable and then set it as the killing unit. I hope you know something about variables otherwise just tell :)
 
Level 9
Joined
Apr 28, 2009
Messages
538
or you can try this:

  • Test3
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Destructible-type of (Target destructible of issued order)) Equal to (Destructible-type of Lever 0001 <gen>)
    • Actions
      • Unit - Kill (Triggering unit)
      • Destructible - Resurrect (Target destructible of issued order) with (Max life of (Last created destructible)) life and Hide birth animation
PS: I know it doesn't make exactly what you need, but i don't know if you'll find a better trigger. Good luck.
 
Last edited:
Status
Not open for further replies.
Top