HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What Is Wrong With This?!?!?

06-08-2004, 12:26 AM#1
Ninja73
function Trig_Koga73_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
end if
return true
endfunction

function Trig_Koga73_Actions takes nothing returns nothing
call KillUnit( GetEnteringUnit() )
endfunction

//========================================================
function InitTrig_Koga73 takes nothing returns nothing
set gg_trg_Koga73 = CreateTrigger( )

call TriggerRegisterEnterRectSimple( gg_trg_Koga73, gg_rct_Region_100 )

call TriggerAddCondition( gg_trg_Koga73, Condition( function Trig_Koga73_Conditions ) )
call TriggerAddAction( gg_trg_Koga73, function Trig_Koga73_Actions )
endfunction
06-08-2004, 05:03 AM#2
Narwanza
Quote:
Originally Posted by Ninja73
Code:
function Trig_Koga73_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
[color=green]end if[/color]
return true
endfunction

function Trig_Koga73_Actions takes nothing returns nothing
call KillUnit( GetEnteringUnit() )
endfunction

//========================================================
function InitTrig_Koga73 takes nothing returns nothing
set gg_trg_Koga73 = CreateTrigger(  )

call TriggerRegisterEnterRectSimple( gg_trg_Koga73, gg_rct_Region_100 )

call TriggerAddCondition( gg_trg_Koga73, Condition( function Trig_Koga73_Conditions ) )
call TriggerAddAction( gg_trg_Koga73, function Trig_Koga73_Actions )
endfunction

endif is all one word