I have been having a tough time keeping my players unit selected, I would like to make it so the players selection can never change from what i define it as using triggers. right now players can click on and select other units in the game which de-selects their main unit..
Event -> Unit Selection -> Unit is Clicked -> Whatever player
Action -> Unit Selection -> Deselect Units -> All units for (Player)
Action -> Unit Selection -> Select Unit -> (Unit) (Player)
If your unit isn't a static unit on the map, you'll probably need another trigger to link the unit you're aiming for into a variable and use that as the Unit. You can also add a condition to see if clicked unit =/= player's unit to prevent the trigger from firing whenever they select their own unit. That should fix the problem... I'm unsure if there's a way to simply lock it, though.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hey all,
I have been having a tough time keeping my players unit selected, I would like to make it so the players selection can never change from what i define it as using triggers. right now players can click on and select other units in the game which de-selects their main unit..
@XenTwitch: Go
Event -> Unit Selection -> Unit is Clicked -> Whatever player
Action -> Unit Selection -> Deselect Units -> All units for (Player) Action -> Unit Selection -> Select Unit -> (Unit) (Player)
If your unit isn't a static unit on the map, you'll probably need another trigger to link the unit you're aiming for into a variable and use that as the Unit. You can also add a condition to see if clicked unit =/= player's unit to prevent the trigger from firing whenever they select their own unit. That should fix the problem... I'm unsure if there's a way to simply lock it, though.