Hey I just wanted some feedback on this trigger below. It appears to work perfect ingame but since I'm new to making triggers purely of custom scripts I would be very happy to get some feedback. I am concerned about leaks.
Do local variables LEAK? Do you have to delete them or do they delete themselves like they do in SC2?
Does the GetRectCenter(gg_rct_Shop), true ) cause a leak? (2nd bottom function)
Thank you for looking into this
Do local variables LEAK? Do you have to delete them or do they delete themselves like they do in SC2?
Does the GetRectCenter(gg_rct_Shop), true ) cause a leak? (2nd bottom function)
Thank you for looking into this
-
TimerDie Expires
- Events
- Conditions
-
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 = (20)
- 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_Shop), true )
- Custom script: call DestroyTimerDialog(WINDOW)