Item selected detection

Status
Not open for further replies.
Level 8
Joined
May 21, 2019
Messages
435
What's the context? There may be an alternative approach for whatever it is you're trying to implement.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
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.
 
Level 11
Joined
Dec 11, 2009
Messages
234
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.
Top