Selectable Revival Zone (+REP WILL BE GIVEN)

JeveKnight

New Member
Reaction score
2
I'm trying to make it so that once your hero dies, after 5 seconds a little invisible ghost spawns for your hero at the corner of the map. Immediately after your ghost spawns at the corner, you then have 20 seconds to find a spot and wait for you to respawn. After 20 seconds, your hero will respawn at the location of the ghost.
:confused:
Can someone help me make this trigger??? Thanks.
 

Volkof

Well-Known Member
Reaction score
31
A clarification: Can the ghost move

if yes then heres how(done freehand, not exact trigger)

Code:
Event - A unit dies
Condition - Dying unit = YOur Hero
Action - Create 1 Ghost for owner of dying unit
          - Set GhostUnit = Last Created Unit
         - Wait 20 seconds
         - Set TempPoint = Position of GhostUnit 
         - Revive "Your Hero" at TempPoint 
         - Remove GhostUnit


This only works for 1 player though. Sorry no We, Im better at hands on
 

JeveKnight

New Member
Reaction score
2
A clarification: Can the ghost move

if yes then heres how(done freehand, not exact trigger)

Code:
Event - A unit dies
Condition - Dying unit = YOur Hero
Action - Create 1 Ghost for owner of dying unit
          - Set GhostUnit = Last Created Unit
         - Wait 20 seconds
         - Set TempPoint = Position of GhostUnit 
         - Revive "Your Hero" at TempPoint 
         - Remove GhostUnit

This only works for 1 player though. Sorry no We, Im better at hands on

Thanks a lot man, very helpful! :)
 

Volkof

Well-Known Member
Reaction score
31
You need to note that my trigger does not handle memory leak, because since it is not the main question and I dont want to complicate things
 

chopperpope

New Member
Reaction score
12
A clarification: Can the ghost move

if yes then heres how(done freehand, not exact trigger)

Code:
Event - A unit dies
Condition - Dying unit is hero equal to true
Action - Create 1 Ghost for owner of dying unit
          - Set GhostUnit[player number of (owner of (dying unit))] = Last Created Unit
         - Wait 20 seconds
         - Set TempPoint = Position of GhostUnit [player number of (owner of (dying unit))] 
         - Revive "Your Hero" at TempPoint 
         - Remove GhostUnit 
         -custom script: call DestroyLocation (udg_Temp_Point)




hope I've helped
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top