YourFace
<span style="color:#9C9C9C;"><strong>Runner Up - T
- Reaction score
- 91
JASS:
function Trig_Untitled_Trigger_002_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 039;hfoo039; ) ) then
return false
endif
return true
endfunction
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
call IssueImmediateOrder( GetAttacker(), "stop" )
endfunction
function Trig_Untitled_Trigger_002_ACtions takes nothing returns nothing
local string a = "Your unit has stoppped039;
call DisplayTextToForce( GetAllPlayers(), a)
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_002 takes nothing returns nothing
set gg_trg_Untitled_Trigger_002 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_002, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Untitled_Trigger_002, Condition( function Trig_Untitled_Trigger_002_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_002, function Trig_Untitled_Trigger_002_Actions )
endfunction
This is my first trigger, but i dont know why it's not working
EDIT nvm i got it working
simple mistakes can mess this thing up
how gay