Hero revive Trigger

Status
Not open for further replies.
Level 5
Joined
Jan 19, 2020
Messages
102
I found this here on hive
<

    1. Actions

    2. join.gif
      page.gif
      Custom script: local unit OURHERO = GetTriggerUnit()
    3. join.gif
      page.gif
      Custom script: local real HEROWAIT = 45
    4. join.gif
      page.gif
      Custom script: local timerdialog WINDOW
    5. join.gif
      page.gif
      Custom script: local timer OURTIMER
    6. join.gif
      comment.gif
      -------- - --------
    7. join.gif
      page.gif
      Custom script: call TimerStart(OURTIMER,HEROWAIT,false,null)
    8. join.gif
      page.gif
      Custom script: set WINDOW = CreateTimerDialog(OURTIMER)
    9. join.gif
      page.gif
      Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
    10. join.gif
      page.gif
      Custom script: call TimerDialogDisplay(WINDOW,true)
    11. join.gif
      page.gif
      Custom script: endif
    12. join.gif
      page.gif
      Custom script: call PolledWait(HEROWAIT)
    13. join.gif
      page.gif
      Custom script: call ReviveHero(OURHERO,GetRectCenterX(gg_rct_basecenter),GetRectCenterY(gg_rct_basecenter),true)
    14. join.gif
      page.gif
      Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
    15. join.gif
      page.gif
      Custom script: call PanCameraToTimed(GetUnitX(OURHERO),GetUnitY(OURHERO),0.6)
    16. join.gif
      page.gif
      Custom script: endif
    17. join.gif
      page.gif
      Custom script: call PauseTimer(OURTIMER)
    18. join.gif
      page.gif
      Custom script: call DestroyTimer(OURTIMER)
    19. join.gif
      page.gif
      Custom script: call DestroyTimerDialog(WINDOW)
    20. joinbottom.gif
      page.gif
      Custom script: set OURHERO = null>

I got 2 Errors on Ourtimer unitilized
and undeclared on gg_rct_basecenter

can someone fix it?

I also want teleport the hero to a region, how to do that?

thanks.
 
Last edited:
call ReviveHero(OURHERO,GetregionX(Center of region 027 <gen>),GetregionY(Center of region 027 <gen>),true)
 
i also want add, if hero is already revived, the Trigger goes away, or at least dont pawn camara. any idea?
 
Status
Not open for further replies.
Back
Top