I have this code, which is real simple:
function hej takes nothing returns nothing
call SetUnitLife( GetLastCreatedUnit, 0.00)
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
The thing is that it wont work. It keeps telling me that it expected a function name. A little twist though, is that if i copy it to an allready made map, (in this case dimonT's 80 inventory) it works perfectly... How the **** can that be right?!
function hej takes nothing returns nothing
call SetUnitLife( GetLastCreatedUnit, 0.00)
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
The thing is that it wont work. It keeps telling me that it expected a function name. A little twist though, is that if i copy it to an allready made map, (in this case dimonT's 80 inventory) it works perfectly... How the **** can that be right?!