[General] MPI Hero Respawn Trigger

Status
Not open for further replies.
Event: unit dies
condition: triggering unit is a hero
wait 5 seconds
create unit of type of triggering unit at your_location

That would be a unit respawn/revive trigger, he wants one for heroes.

This should work and is MUI:

  • revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Wait 20.00 seconds
      • Custom script: set udg_unitvar = u
      • Hero - Instantly revive unitvar at (Center of (Playable map area)), Show revival graphics
The unitvar and custom scripts may be unnecessary.
 
Even with custom scripts you could reduce it to:
revive
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      unit.gif
      Unit - A unit Dies
  • joinminus.gif
    cond.gif
    Conditions
    • line.gif
      joinbottom.gif
      if.gif
      ((Triggering unit) is A Hero) Equal to True
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      join.gif
      page.gif
      Custom script: local unit udg_unitvar = GetTriggerUnit()
    • empty.gif
      join.gif
      zzz.gif
      Wait 20.00 seconds
    • empty.gif
      joinbottom.gif
      hero.gif
      Hero - Instantly revive unitvar at (Center of (Playable map area)), Show revival graphics
 
That would be a unit respawn/revive trigger, he wants one for heroes.

This should work and is MUI:

  • revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Wait 20.00 seconds
      • Custom script: set udg_unitvar = u
      • Hero - Instantly revive unitvar at (Center of (Playable map area)), Show revival graphics
The unitvar and custom scripts may be unnecessary.

What if I have 2 different respawn locations? Do I have to create 2 triggers?
 
Status
Not open for further replies.
Back
Top