GUI Trigger

Status
Not open for further replies.
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
 
  • 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 :)
 
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.
Back
Top