HI,
i am working on a map on which each player only controls one unit.
i just spent an hour+ to figure out a way to make it that players cannot select anything else but their unit.
i neither could figure out a way to do this in data editor, nor in the trigger editor (in which i guess this is propably easier to do).
as i just watched some tutorials and used the sf in the forum but failed to find sth of use for solving my problem.
i'd like to know if s.o. can come up with a way to do this?
as you believe it or not. i tried THIS EXACT trigger code on a test map and it did not work for some reason.
two problems:
- when i select another unit, my hero unit will be added to that selection, meaning i have two units selected (i could insert a deselect command)
- this does only work on the players own units. as soon as an enemy unit is being selected the 'select hero unit' thingy doesnt trigger anymore
as you believe it or not. i tried THIS EXACT trigger code on a test map and it did not work for some reason.
two problems: - when i select another unit, my hero unit will be added to that selection, meaning i have two units selected (i could insert a deselect command) - this does only work on the players own units. as soon as an enemy unit is being selected the 'select hero unit' thingy doesnt trigger anymore
HI, i am working on a map on which each player only controls one unit.
i just spent an hour+ to figure out a way to make it that players cannot select anything else but their unit. i neither could figure out a way to do this in data editor, nor in the trigger editor (in which i guess this is propably easier to do).
as i just watched some tutorials and used the sf in the forum but failed to find sth of use for solving my problem.
i'd like to know if s.o. can come up with a way to do this?
thx
Try this code. It forces selection by selecting the unit that you want undeselectable whenever you select any unit.
as you believe it or not. i tried THIS EXACT trigger code on a test map and it did not work for some reason.
two problems: - when i select another unit, my hero unit will be added to that selection, meaning i have two units selected (i could insert a deselect command) - this does only work on the players own units. as soon as an enemy unit is being selected the 'select hero unit' thingy doesnt trigger anymore
what now
@xKenneth: Go
Unit Selection - Any Unit is Selected by player Any Player
Did you mean Any Unit is Deselected by player Any Player?
What if you add a Condition that says "Owner of Player = (Player #)" and another that says Triggering Unit = (Unit)
Don't get what you mean. Works for me.
alright i got it working. i didnt include the deselect unit group part.
thanks for the map example