I found this here on hive
<
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.
<
- Actions
-
Custom script: local unit OURHERO = GetTriggerUnit()
Custom script: local real HEROWAIT = 45
Custom script: local timerdialog WINDOW
Custom script: local timer OURTIMER
-------- - --------
Custom script: call TimerStart(OURTIMER,HEROWAIT,false,null)
Custom script: set WINDOW = CreateTimerDialog(OURTIMER)
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
Custom script: call TimerDialogDisplay(WINDOW,true)
Custom script: endif
Custom script: call PolledWait(HEROWAIT)
Custom script: call ReviveHero(OURHERO,GetRectCenterX(gg_rct_basecenter),GetRectCenterY(gg_rct_basecenter),true)
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
Custom script: call PanCameraToTimed(GetUnitX(OURHERO),GetUnitY(OURHERO),0.6)
Custom script: endif
Custom script: call PauseTimer(OURTIMER)
Custom script: call DestroyTimer(OURTIMER)
Custom script: call DestroyTimerDialog(WINDOW)
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:
