HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass Help

04-16-2004, 07:39 PM#1
Ninja73
Hey,

this trigger is supposed to make it so that if a unit enters a region, and the player-owner of entering unit is not equal to player 10(light blue) then kill the entering unit. I dont want to use the normal triggers because i have like 900 regions and jass will make it so much faster!

heres what i got so far

function You_walk_on_u_die_nigger_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(9) ) ) then
return false
endif
return true
endfunction

function You_walk_on_u_die_nigger_Actions takes nothing returns nothing
endfunction

//================================================== =========================
function InitTrig_You_walk_on_u_die_nigger takes nothing returns nothing
call TriggerAddCondition( gg_trg_You_walk_on_u_die_nigger, Condition( function Trig_You_walk_on_u_die_nigger_Conditions ) )
set gg_trg_You_walk_on_u_die_nigger = CreateTrigger( )

call TriggerRegisterEnterRectSimple( gg_trg_You_walk_on_u_die_nigger, gg_rct_Region_233 )
call TriggerAddAction( gg_trg_You_walk_on_u_die_nigger, function trig_You_walk_on_u_die_nigger_Actions )
endfunction


WHAT IS WRONG WITH IT????? CAN SOME1 PLZ HELP ME?
04-17-2004, 09:22 AM#2
Vidstige
I presume that racism is not tolerated here, so I hope that a moderator closes this thread real quick.
04-17-2004, 12:55 PM#3
AIAndy
True, please rename your trigger. Also don't use caps lock. And this trigger is not doing anything yet so I guess you better try to put an action in it before asking for help.

Closed until the trigger is renamed.