- Joined
- Apr 16, 2016
- Messages
- 28
Ok, this is really strange, I'm thinking this may be a WC3 Engine bug.
I'm ordering an AI to use an item called blink scroll. The nature of this item is self explanatory - it blinks the hero to the targeted location.
I'm using the call UnitUseItemPoint to do so. I also need to track whether the blink went in successfully or not.
The native function UnitUseItemPoint returns a boolean, so naturally, I assumed the return value indicates whether the item was used successful or not.
Problem is, the return value is always false regardless of the item being used successfully or not. I haven't had this function return true in any circumstances under testing. Contrast this to say, UnitUseItem where this one correctly returns true when the item is used.
Is this a bug in WC3 engine? Or is the return value of UnitUseItemPoint supposed to indiciate something else?
I'm ordering an AI to use an item called blink scroll. The nature of this item is self explanatory - it blinks the hero to the targeted location.
I'm using the call UnitUseItemPoint to do so. I also need to track whether the blink went in successfully or not.
The native function UnitUseItemPoint returns a boolean, so naturally, I assumed the return value indicates whether the item was used successful or not.
Problem is, the return value is always false regardless of the item being used successfully or not. I haven't had this function return true in any circumstances under testing. Contrast this to say, UnitUseItem where this one correctly returns true when the item is used.
Is this a bug in WC3 engine? Or is the return value of UnitUseItemPoint supposed to indiciate something else?