xxxtrickyxxx
(o Y o)
- Reaction score
- 64
Hey, been having a bit of trouble thought I might ask here...
My map involves the left clicking of units to interact but the problem is you are controlling a hero while you are clicking on these other units. For the most part, it works fine but when you click on another unit it will select the other unit for a good half second because I am wanting it to go back to selecting my hero as soon as you click on another unit. I have tried almost everything possible to avoid this. There is basically too far of a time gap between when selecting the unit and the deselection/selection of the other unit. I have tried just about every selection action combination.
This is one way I have tried doing this, every time a unit is selected, it clears the selection and then selects the hero again. The problem is I think the event is taking too long since it is a good half second that i can see on my ui i have selected the other unit.
I have tried to also have basically the trigger above plus a periodic running every .01 that will constantly clear selection and then select hero as well. This helped a bit but not well enough. Basically by clearing the selection every .01 its about a 50% chance it will flicker from the selection of the other unit. Its not a half second but it is still an annoying flicker when you have to click units quite often. So it seems the event detecting the selection is too slow and even .01 periodic is too slow.
Thanks
My map involves the left clicking of units to interact but the problem is you are controlling a hero while you are clicking on these other units. For the most part, it works fine but when you click on another unit it will select the other unit for a good half second because I am wanting it to go back to selecting my hero as soon as you click on another unit. I have tried almost everything possible to avoid this. There is basically too far of a time gap between when selecting the unit and the deselection/selection of the other unit. I have tried just about every selection action combination.
This is one way I have tried doing this, every time a unit is selected, it clears the selection and then selects the hero again. The problem is I think the event is taking too long since it is a good half second that i can see on my ui i have selected the other unit.
Code:
Clicker Thing
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Triggering unit) Not equal to Hero[1]
Actions
Selection - Clear selection
Selection - Select Hero[1]
Quest - Display to (All players) the Simple Hint message: shoot
I have tried to also have basically the trigger above plus a periodic running every .01 that will constantly clear selection and then select hero as well. This helped a bit but not well enough. Basically by clearing the selection every .01 its about a 50% chance it will flicker from the selection of the other unit. Its not a half second but it is still an annoying flicker when you have to click units quite often. So it seems the event detecting the selection is too slow and even .01 periodic is too slow.
Thanks