Name | Type | is_array | initial_value |
EpicPulse_Caster | unit | Yes | |
EpicPulse_CasterPoint | location | Yes | |
EpicPulse_Dummy | unit | Yes | |
EpicPulse_LoopTime | real | Yes | |
EpicPulse_MUI | integer | No | |
Impale_Caster | unit | Yes | |
Impale_MUI | integer | No | |
Impale_TargetPoint | location | Yes | |
Impale_TimeLoop | real | Yes | |
SandStorm_Caster | unit | Yes | |
SandStorm_CasterPoint | location | Yes | |
SandStorm_DummyDamage | unit | Yes | |
SandStorm_DummyInvisibility | unit | Yes | |
SandStorm_MUI | integer | No |
function Trig_Init_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call SelectUnitForPlayerSingle( gg_unit_H000_0000, Player(0) )
call FogEnableOff( )
call FogMaskEnableOff( )
endfunction
//===========================================================================
function InitTrig_Init takes nothing returns nothing
set gg_trg_Init = CreateTrigger( )
call TriggerAddAction( gg_trg_Init, function Trig_Init_Actions )
endfunction
function Trig_RespawnHero_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H000' ) ) then
return false
endif
return true
endfunction
function Trig_RespawnHero_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
call ReviveHeroLoc( GetDyingUnit(), GetPlayerStartLocationLoc(GetOwningPlayer(GetDyingUnit())), true )
call SelectUnitForPlayerSingle( GetDyingUnit(), GetOwningPlayer(GetDyingUnit()) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetDyingUnit()), GetPlayerStartLocationLoc(GetOwningPlayer(GetDyingUnit())), 0.50 )
endfunction
//===========================================================================
function InitTrig_RespawnHero takes nothing returns nothing
set gg_trg_RespawnHero = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RespawnHero, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_RespawnHero, Condition( function Trig_RespawnHero_Conditions ) )
call TriggerAddAction( gg_trg_RespawnHero, function Trig_RespawnHero_Actions )
endfunction