- Joined
- Aug 2, 2009
- Messages
- 22
hi there guys,
anybody know how i can change the revive location here?
-
Revive Hero
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
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(GetPlayableMapRect()), true )
- Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
- Custom script: call DestroyTimerDialog(WINDOW)
-
Events
anybody know how i can change the revive location here?