Name | Type | is_array | initial_value |
BS_Active | boolean | Yes | |
BS_Caster | unit | Yes | |
BS_CurDamageIntevall | real | Yes | |
BS_Damage | real | Yes | |
BS_DamageIntevall | real | Yes | |
BS_Distance | real | Yes | |
BS_FlyingHight | real | Yes | |
BS_Height | real | Yes | |
BS_HighSettings | real | Yes | |
BS_LeakPoint | location | Yes | |
BS_Lightning | lightning | Yes | |
BS_LoopIndex | integer | Yes | |
BS_Missle | unit | Yes | |
BS_MissleX | real | No | |
BS_MissleY | real | No | |
BS_MissleZ | real | No | |
BS_RealTimer | real | Yes | |
BS_SFX | effect | Yes | |
BS_Target | unit | Yes | |
BS_TargetX | real | No | |
BS_TargetY | real | No | |
BS_TargetZ | real | No | |
BS_TempReal | real | Yes | |
BS_Timer | real | Yes | |
BS_XDegree | real | Yes | |
BS_XSpeed | real | Yes | |
BS_ZDegree | real | Yes | |
BS_ZSpeed | real | Yes |
function Trig_Disable_Func003A takes nothing returns nothing
call SetUnitColor( GetEnumUnit(), ConvertPlayerColor(12) )
endfunction
function Trig_Disable_Actions takes nothing returns nothing
call FogEnableOff( )
call FogMaskEnableOff( )
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Disable_Func003A )
endfunction
//===========================================================================
function InitTrig_Disable takes nothing returns nothing
set gg_trg_Disable = CreateTrigger( )
call TriggerAddAction( gg_trg_Disable, function Trig_Disable_Actions )
endfunction
function Trig_Creeps_Respawn_Func003C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(1) ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Creeps_Respawn_Conditions takes nothing returns boolean
if ( not Trig_Creeps_Respawn_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Creeps_Respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 20.00 )
// i know it use a wait but it is only for the test map
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetDyingUnit()), GetOwningPlayer(GetDyingUnit()), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Creeps_Respawn takes nothing returns nothing
set gg_trg_Creeps_Respawn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Creeps_Respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creeps_Respawn, Condition( function Trig_Creeps_Respawn_Conditions ) )
call TriggerAddAction( gg_trg_Creeps_Respawn, function Trig_Creeps_Respawn_Actions )
endfunction