ok, I'm tired, it's been a long day, and I can't figure out what the heck is wrong.
This trigger:
doesn't compile.
The error is "Type mismatch in assignment" for the local unittype declaration.
To double check if I was doing anything silly, I even copied and pasted a similar line from here:
http://www.thehelper.net/forums/showthread.php?t=84907&highlight=unittype
This line:
But this doesn't compile for me either !
Anyone see what might be wrong here ? If I comment out the unittype declaration then it compiles ok.
This trigger:
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local unittype someUnitType = udg_someUnitType
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
doesn't compile.
The error is "Type mismatch in assignment" for the local unittype declaration.
To double check if I was doing anything silly, I even copied and pasted a similar line from here:
http://www.thehelper.net/forums/showthread.php?t=84907&highlight=unittype
This line:
JASS:
local unittype MobSpawn = GetUnitTypeId(GetDyingUnit())
But this doesn't compile for me either !
Anyone see what might be wrong here ? If I comment out the unittype declaration then it compiles ok.