- Joined
- Nov 6, 2009
- Messages
- 279
Could somebody explain to me what im doing wrong with this function? PLZ???
JASS:
function LOLOMG takes nothing returns nothing
local unit u = GetKillingUnit()
local texttag t = CreateTextTag()
call SetTextTagPosUnit(t, u, 0)
call SetTextTagText( t, "DIE SCUM!!!", 10)
call SetTextTagColor(t, 80, 20, 100, 0)
endfunction
//===========================================================================
function InitTrig_DIESCUM takes nothing returns nothing
local trigger TRG = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( TRG, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( TRG, function LOLOMG )
endfunction