LightChaosma
New Member
- Reaction score
- 60
0.00 and 0.05 dont work...
i dont c whats wrong with it...
i dont c whats wrong with it...
globals
constant boolean Extrasenabled = true
constant integer Waves = 25
constant integer NumPlayers = 7
endglobals
function Trig_Func_04 takes nothing returns boolean
if Extrasenabled == true then
return true
endif
return false
endfunction
function Trig_Func_05 takes nothing returns nothing
if ( Trig_Func_04() ) then
call SetUnitUserData( GetEnumUnit(), udg_Custom[GetForLoopIndexA()] )
else
call DoNothing( )
endif
call UnitAddAbility( GetEnumUnit(), 039;Aeth039; )
call SetUnitColor( GetEnumUnit(), GetPlayerColor(ConvertedPlayer(GetForLoopIndexB())) )
call SetUnitExploded( GetEnumUnit(), true )
endfunction
function Trig_Func_06 takes nothing returns boolean
if udg_ActivePlayer[GetForLoopIndexB()] == true then
return true
endif
return false
endfunction
function Trig_Actions_06 takes nothing returns nothing
local integer i = 0
local integer o = 1
local integer f = Waves
local integer e = NumPlayers
set udg_CurrentWave = ( udg_CurrentWave + 1 )
call DisplayTextToForce( GetPlayersAll(), ( ( "Wave " + I2S(udg_CurrentWave) ) + ( ": " + UnitId2String(udg_Wave[udg_CurrentWave]) ) ) )
if ( Trig_Func_04() ) then
set udg_Custom[1] = 1
set udg_Custom[2] = 1
set udg_Custom[3] = 2
set udg_Custom[4] = 2
set udg_Custom[5] = 3
set udg_Custom[6] = 3
set udg_Custom[7] = 4
set udg_Custom[8] = 4
else
call DoNothing( )
endif
set udg_Angle[1] = 0.00
set udg_Angle[2] = 180.00
set udg_Angle[3] = 270.00
set udg_Angle[4] = 90.00
set udg_Angle[5] = 180.00
set udg_Angle[6] = 0.00
set udg_Angle[7] = 90.00
set udg_Angle[8] = 270.00
loop
exitwhen o > f
call PolledWait( 0.20 )
loop
exitwhen i > e
if ( Trig_Func_06() ) then
set udg_TempPoint = udg_Spawn<i>
call CreateNUnitsAtLoc( 1, udg_Wave[udg_CurrentWave], Player(8), udg_TempPoint, udg_Angle<i> )
call RemoveLocation (udg_TempPoint)
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_TempGroup )
call ForGroup( udg_TempGroup, function Trig_Func_05 )
call DestroyGroup (udg_TempGroup)
else
endif
set i = i + 1
endloop
set o = o + 1
endloop
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_007 takes nothing returns nothing
local trigger t = CreateTrigger( )
call TriggerRegisterTimerExpireEvent( t, udg_Next_Wave )
call TriggerAddAction( t, function Trig_Actions_06 )
endfunction
</i></i>