• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item selected detection

Status
Not open for further replies.
What's the context? There may be an alternative approach for whatever it is you're trying to implement.
 
Or, if you want a better method, you can use Trackables : How to: Use Trackables
Unless they added the functionality, trackables can’t be destroyed and they can’t be moved (never any naives for this), so while it sounds attractive this is probably a subpar solution as it permanently uses memory every time you create one. They were likely meant to be superseded by the new mouseclick/location natives. Which could also work for this if you want to ignore drag selecting an item (can you even do that?) and feel like calculating the coordinates of the click based on camera angles.
 
if you want to ignore drag selecting an item (can you even do that?)
It was possible before 1.31 and it was implemented in my MWS map (combined usage of EnableSelect, SelectUnit, BlzGetTriggerPlayerMouseX/Y and dummy units)
But in 1.31 they changed EnableSelect behavior, so it's broken now (kinda works, but far from perfection).
 
Status
Not open for further replies.
Back
Top