Is there a way to do this? I know about the 'unselectable' unit flag in data, but that makes the unit unselectable for all players. I want the player who controls the unit to be able to select it, but enemy players only able to target it.
I'm not sure if this is an acceptable solution, but what do you think of a trigger that removes units from a player's selection if they are not the controlling player? It might allow selection for a split-second, so it's not a perfect solution.
Unfortunately I think there is no elegant solution for this. It depends on why you want the units to be unselectable for other players. If it is really essential for your map I can think about a solution using dummy units. For this you create 2 versions of a unit: a visible, but unselectable unit and a transparent dummy controller unit that is invisible to other players. All orders you give to the controller unit has to be transferred to the main unit with triggers. And the controller has to be moved to the location of main unit and update health/shields/energy to fake the selection of the main unit.
This is probably too much work and I cannot guarantee that it will run smoothly so I recommend using the solution presented by FuzzYD.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there a way to do this? I know about the 'unselectable' unit flag in data, but that makes the unit unselectable for all players. I want the player who controls the unit to be able to select it, but enemy players only able to target it.
I'm not sure if this is an acceptable solution, but what do you think of a trigger that removes units from a player's selection if they are not the controlling player? It might allow selection for a split-second, so it's not a perfect solution.
@FuzzYD: Go
I was considering that. Thanks for the input!
Unfortunately I think there is no elegant solution for this. It depends on why you want the units to be unselectable for other players. If it is really essential for your map I can think about a solution using dummy units. For this you create 2 versions of a unit: a visible, but unselectable unit and a transparent dummy controller unit that is invisible to other players. All orders you give to the controller unit has to be transferred to the main unit with triggers. And the controller has to be moved to the location of main unit and update health/shields/energy to fake the selection of the main unit.
This is probably too much work and I cannot guarantee that it will run smoothly so I recommend using the solution presented by FuzzYD.