Hero spawn timer

Editorrookie

New Member
Reaction score
1
I'm making a map like 12 blademasters. I want to make your hero spawn 30 seconds after you die, at the beginning of the map. How do i do that? Thanks
 

D.V.D

Make a wish
Reaction score
73
Trigger:
  • Event: A Generic Unit Dies
    • Condition: Dying Unit is a Hero Equal to True
    • Actions:
      • Set Hero = Dying Unit
      • Set Point = Center of Revive Region
      • Wait 30.00 seconds
      • Hero: Revive Hero instantly at Point
      • Custom Script: call RemoveLocation(udg_Point)


Create 2 variables. One is a unit variable called hero, other is a point variable called point and create this code. May have some spelling mistakes.
 

Cookiemaster

New Member
Reaction score
36
Trigger:
  • Event: A Generic Unit Dies
    • Condition: Dying Unit is a Hero Equal to True
    • Actions:
      • Set Hero = Dying Unit
      • Set Point = Center of Revive Region
      • Wait 30.00 seconds
      • Hero: Revive Hero instantly at Point
      • Custom Script: call RemoveLocation(udg_Point)


Create 2 variables. One is a unit variable called hero, other is a point variable called point and create this code. May have some spelling mistakes.

That, is not MUI.

The actions should be something like:
Wait 30.00 seconds
Hero - Revive (triggering unit) instantly
unit - move unit (instantly) to (center of (revive region))*

*Has a leak, you'll have to fix that.
 

D.V.D

Make a wish
Reaction score
73
Mine doesn't leak. All my trigger used was a unit and a point and I made those variables. Second, it doesn't have too be MUI since all players have 1 hero. It just needs to be MPI.
 

Editorrookie

New Member
Reaction score
1
PLease help me

I have nooo idea on how to do this! I have never created a variable before, please help me !
 

D.V.D

Make a wish
Reaction score
73
Open up the trigger editor, look up and it will say variables at the top of the trigger editor. Go on create variable and start making. The first line is the name, second is the type and don't check mark the box. It makes it a array.
 

D.V.D

Make a wish
Reaction score
73
No. Your variables are Hero and Point. You write for the point variable point and for the unit variable Hero. To select the variable type, scroll down that little bar the variable creator gives you. Generic Unit Dies is a event.
 

Editorrookie

New Member
Reaction score
1
A handfull of help

If I give you full acess to the map I'm creating could you create a thing that respawns heros after 30 seconds? Like in 12 Blademaster? Or give me a sharp guide made by you that I can understand, never made any variables before.
Thank you somuch
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top