• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

UnitUseItemPoint always returns false. WC3 Engine bug?

Status
Not open for further replies.
Level 3
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?
 

EdgeOfChaos

E

EdgeOfChaos

From what other people say, it does seem to be bugged. You'll have to write your own functionality to detect whether it worked or not.
 
Status
Not open for further replies.
Top