I want left mouse click to still be used to target but I want character control to remain with the hero. In other words I want it to work like League of Legends.
I have tried using a trigger with a "any player clicks left mouse button down" event and returning selection to last selected but that didn't work.
Anybody have the solution? I am sure its an easy one :P .
Your map didn't work right. If I place a few enemies or friendlies on the map and left click them it still deselects the dark templar. ie. the player loses control.
Most curious! I have that in one of my maps and it does work. Aha, but wait! I forgot the action to clear selection for the player before it can reselect. I've attached a map for you.
Most curious! I have that in one of my maps and it does work. Aha, but wait! I forgot the action to clear selection for the player before it can reselect. I've attached a map for you.
That worked perfectly. Now to figure out how to set the array for 10 players that are selecting a hero from a dialog and not map ini :P
I want left mouse click to still be used to target but I want character control to remain with the hero. In other words I want it to work like League of Legends.
I have tried using a trigger with a "any player clicks left mouse button down" event and returning selection to last selected but that didn't work.
Anybody have the solution? I am sure its an easy one :P .
Store the hero unit as a variable
A Variable of type Unit Store the hero here Every time when something is selected by player 1 Select the Hero for Player 1
@DarkFireDragoon: Go
Thanks!
So if I have 10 players on the map I would need to have this set as an array right? Or what?
@DarkFireDragoon: Go
Your map didn't work right. If I place a few enemies or friendlies on the map and left click them it still deselects the dark templar. ie. the player loses control.
There is an event for when a player deselects a unit. This should work:
You need to have a unit array with each player's hero.
Hope it helps!
@Qancakes: Go
Cool, trying it now :).
Will report back.
@Qancakes: Go
Nope its still selecting the target and relinquishing control of the hero unit.
@Redfox777: Go
Ok This SHOULD be it:
Event
Map Int.
Actions
Pick Each player for [All Players]
Set Hero [picked player] to All Units of the Type [hero type] owned by [picked player] in the entrie map
Selecting
Event
Mouse left click down
Actions
Diselect all selected units for [triggering play] Select Hero [triggering Player] for [triggering player]
haha nice trying now
@Redfox777: Go
Most curious! I have that in one of my maps and it does work. Aha, but wait! I forgot the action to clear selection for the player before it can reselect. I've attached a map for you.
@DarkFireDragoon: Go
the set hero is a variable command? Im not finding that trigger
That worked perfectly. Now to figure out how to set the array for 10 players that are selecting a hero from a dialog and not map ini :P
@Redfox777: Go
Sry about that, i forgot to put [unit 1 from [unitgroup(All Units of the Type [hero type] owned by [picked player] in the entrie map)]