Laiev
Hey Listen!!
- Reaction score
- 188
because local is the first thing in the function, nothing else
move this
Set Region1 = Region 000 <gen>
after this:
Custom script: local unit OURHERO
so will be:
move this
Set Region1 = Region 000 <gen>
after this:
Custom script: local unit OURHERO
so will be:
Trigger:
- Revive Hero
- Actions
- Custom script: local timerdialog WINDOW
- Custom script: local integer HEROWAIT
- Custom script: local timer OURTIMER
- Custom script: local unit OURHERO
- Set Region1 = Region 000 <gen>
- 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: all ReviveHeroLoc(OURHERO, udg_Region1, true )
- Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
- Custom script: call DestroyTimerDialog(WINDOW)
- Custom script: call RemoveLocation (udg_Region1)