Name | Type | is_array | initial_value |
angle | real | Yes | |
CH_Group | group | No | |
CH_Trigger_unit_loc | location | No | |
Combine_Charged_Items | boolean | No | |
Combine_Charges_Max | integer | No | |
Creep_Point | location | Yes | |
distance_M | location | Yes | |
Duration | integer | Yes | |
Effect1 | effect | No | |
Effect2 | effect | No | |
End | location | No | |
End_Game_If_All_Gone | boolean | No | |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
Hero_Revive_Time_Factor | real | No | |
Hostile_Revive_Time | real | No | |
intiger | integer | Yes | |
Jumper | unit | No | |
LeaderboardScourge | leaderboard | No | |
LeaderboardSentinel | leaderboard | No | |
Multiboard_Clock | integer | No | |
Multiboard_ShowDeaths | boolean | No | |
Multiboard_Spots | integer | Yes | |
Player_Colors | string | Yes | |
Player_Starting_Gold | integer | No | |
PlayerNames | string | Yes | |
Players | force | No | |
PlayersCount | integer | No | |
PlayersScourge | force | No | |
PlayersSentinel | force | No | |
Point_A | location | Yes | |
Point_B | location | Yes | |
Repick_Cost_Ammount | integer | No | |
RevivableHeroes | group | No | |
ReviveTimers | timer | Yes | |
Score_Deaths | integer | Yes | |
Score_Kills | integer | Yes | |
Sort_Board_By_Kills | boolean | No | |
SP_1 | effect | Yes | |
SP_2 | effect | Yes | |
Start | location | No | |
TempInteger | integer | No | |
TempPoint | location | No | |
Time_Casts | integer | Yes | |
unit_C | unit | Yes | |
Unit_T | unit | Yes | |
UnitGroup | group | No |
function Trig_Hero_Revive_Conditions takes nothing returns boolean
return IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true
endfunction
function Trig_Hero_Revive_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local player p = GetOwningPlayer(u)
call TriggerSleepAction( 1.00 )
call ReviveHero( u, GetPlayerStartLocationX(p), GetPlayerStartLocationY(p), true )
if (GetLocalPlayer() == p) then
call PanCameraToTimed( GetPlayerStartLocationX(p), GetPlayerStartLocationY(p), 0.5)
endif
call SetUnitLifePercentBJ( u, 100 )
call SetUnitManaPercentBJ( u, 100 )
call UnitResetCooldown( u )
set u = null
set p = null
endfunction
//===========================================================================
function InitTrig_Hero_Revive takes nothing returns nothing
set gg_trg_Hero_Revive = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hero_Revive, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Hero_Revive, Condition( function Trig_Hero_Revive_Conditions ) )
call TriggerAddAction( gg_trg_Hero_Revive, function Trig_Hero_Revive_Actions )
endfunction