I noticed that before you select a unit, the cursor changes from the racial pointer (terran/zerg/protoss) to a box of some sort. DOes anyone know how to detect when this effect occurs?
I thought perhaps it was "unit is hilighted" but that turned out to be something different. So I'm looking to either detect this event or find some way of determing which unit on the map is "pre-selected" before being clicked.
The reason is that I can rotate my camera to any position/angle/field of view and my cursor will light up when I hover over a unit. It seems that this is a built in traceline function, and I want to access it.
Had to go to Data Editor and uncheck "Unit Cannot be Highlighted"
Now it works fine and we have an in-game traceline.
Use "Unhighlighted" to detect when no unit is in traceline. Actually, I should make a small thread about this in triggers.
You must login to post a comment. Don't have an account? Register to get one!