- Joined
- Dec 1, 2008
- Messages
- 7
For some reason my world editor does not accept unit codes to be assigned to local variables claiming that integers cannot be converted to unittype
I tried to reduce all error sources but even on a new map a simple function like this would generate the same error
However, with functions that take a unittype as argument it works, like createunit(player, 'hpea', .....), would compile and work.
I tried to reduce all error sources but even on a new map a simple function like this would generate the same error
JASS:
function test takes nothing returns nothing
local unittype u
set u = 'hpea'
endfunction
However, with functions that take a unittype as argument it works, like createunit(player, 'hpea', .....), would compile and work.