How can I instantly switch selection of player upon selection event?

Status
Not open for further replies.
Level 11
Joined
Oct 9, 2015
Messages
721
I want to make so when the player selects the dummy I've made, his selection is redirectioned to the hero instead. However there is a little delay for that to happen, so here's the question: how can I make it switch selection instantly so the player can't see the dummy unit ?
Thanks hive!
 
Level 18
Joined
May 11, 2012
Messages
2,108
Actually, you cannot, as lich said.
I know what you are asking for, because I have made the same thing, and that little delay bothers alot. Selecting dummy, and instantly reselecting another unit without that delay is impossible afaik.
 
Level 18
Joined
May 11, 2012
Messages
2,108
Locust is exactly what he needs to avoid, because he needs to select the dummy unit, and instanteniously reselect another unit wth triggers when dummy is selected. He is trying to avoid that delay between selections.
 
Well, the selection event is delayed as far as I know. Not the actual selection function.
"Locust is exactly what he needs to avoid"
How can you say that when he has not stated that?

If he states the function of the dummy unit, there may be ways around diverting selection. It all really depends on what he wants the dummy unit to do, which he hasn't specified.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
how can I make it switch selection instantly so the player can't see the dummy unit ?
Play singleplayer where network delay for synchronizing player selection is not a problem. When a player selects something the selection must be sent to the host server and then synchronized between all clients before the appropriate event can fire. This is the same reason arrow keys, esc and dialog button events all have latency.

Either that or you raise the speed of light to infinity throughout the real universe so that communication between two points in space is instant. Alternatively you could alter space time continuum so earth and everything on it is physically smaller so the speed of light covers more relative distance per unit time. Both of these would win you incredible awards for science, revolutionize the world, upset other advanced alien life and potentially destroy the universe and everything that is in it. I think you would be better off changing your game design so that selection latency is not a problem.
 
Level 18
Joined
May 11, 2012
Messages
2,108
Either that or you raise the speed of light to infinity throughout the real universe so that communication between two points in space is instant. Alternatively you could alter space time continuum so earth and everything on it is physically smaller so the speed of light covers more relative distance per unit time. Both of these would win you incredible awards for science, revolutionize the world, upset other advanced alien life and potentially destroy the universe and everything that is in it. I think you would be better off changing your game design so that selection latency is not a problem.
You are epic, DGS hahahahahah :D
 
Status
Not open for further replies.
Top