- Joined
- Sep 29, 2012
- Messages
- 37
When a hero dies, the timer shows to everybody.
-
Revive Hero Resistance
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Triggering unit) is A Hero) Equal to True
-


Or - Any (Conditions) are true
-



Conditions
-




(Owner of (Triggering unit)) Equal to Player 2 (Blue)
-




(Owner of (Triggering unit)) Equal to Player 3 (Teal)
-




(Owner of (Triggering unit)) Equal to Player 4 (Purple)
-




(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
-




(Owner of (Triggering unit)) Equal to Player 6 (Orange)
-
-
-
-

Actions
-


Custom script: local timerdialog WINDOW
-


Custom script: local integer HEROWAIT
-


Custom script: local timer OURTIMER
-


Custom script: local unit OURHERO
-


Custom script: set OURHERO = GetDyingUnit()
-


Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
-


Custom script: set OURTIMER = CreateTimer()
-


Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
-


Custom script: call CreateTimerDialogBJ( OURTIMER, GetPlayerName(GetOwningPlayer(OURHERO)) )
-


Custom script: set WINDOW = GetLastCreatedTimerDialogBJ()
-


Custom script: call TimerDialogDisplayForPlayerBJ( true, WINDOW, GetOwningPlayer(OURHERO) )
-


Custom script: call PolledWait( HEROWAIT )
-


Custom script: call ReviveHeroLoc(OURHERO, GetRectCenter(gg_rct_Spawn_Resistance), true)
-


Custom script: call SetUnitFacingTimed( OURHERO, 270.00, 0 )
-


Custom script: call SelectUnitAdd( OURHERO )
-


Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
-


Custom script: call DestroyTimerDialog(WINDOW)
-
-


