Hi,
yet another question.
I've got some code, tested it on a blanc map and there it worked.
then I tried it on a map with a few of my tests and guess what... it soesn't work anymore, the problem is, it's probably just a stupid mistake.
here's the code. It's supposed to create a footman when you type "-unit".
yet another question.
I've got some code, tested it on a blanc map and there it worked.
then I tried it on a map with a few of my tests and guess what... it soesn't work anymore, the problem is, it's probably just a stupid mistake.
here's the code. It's supposed to create a footman when you type "-unit".
JASS:
function Trig_sstest_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 039;hfoo039;, Player(0), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_sstest takes nothing returns nothing
set gg_trg_sstest = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_sstest, Player(0), "-unit", false )
call TriggerAddAction( gg_trg_sstest, function Trig_sstest_Actions )
endfunction