- Joined
- Mar 10, 2009
- Messages
- 5,014
I have issues with UnitAlive:
method #1
method #2
I used method #2 in my system http://www.hiveworkshop.com/forums/spells-569/summonedescort-v1-4-a-221902/?prev=r=20&page=2 and doesnt work if I dont add
On the other hand method 1 works...the 2 methods suppose to work the same, my question is why?...
#1 is hardcoded and maybe the setup is like this?
method #1
native UnitAlive takes unit u returns boolean
method #2
JASS:
function UnitAlive takes unit u returns boolean
return not IsUnitType(u,UNIT_TYPE_DEAD)
endmethod
I used method #2 in my system http://www.hiveworkshop.com/forums/spells-569/summonedescort-v1-4-a-221902/?prev=r=20&page=2 and doesnt work if I dont add
and u!=null
On the other hand method 1 works...the 2 methods suppose to work the same, my question is why?...
#1 is hardcoded and maybe the setup is like this?
return not IsUnitType(u,UNIT_TYPE_DEAD) and u!=null