Hello
What I´m trying to do is bit complicated yet simple
I´m trying to make Player lose control over unit´s movement but still be able to use that units spells.
The idea is that in game Player spawns a unit and this unit starts charging towards enemy´s (player2) spawning grounds. Second player does the same obviously. They clash in the middle of the map and they try to get to the spawning building of another player and destroy it. But once unit is spawned I don´t want it to be able to move backwards or sideways but I still want it to be able to use its spells.
I´ve kind of achieved this by changing the owner of the unit to another player which is allied with him. So it only attacks enemies, player loses control over his unit but it still uses spells it has. But the idea was that you need to keep an eye on your units mana and use the spell once it´s ready.
What I´m trying to do is bit complicated yet simple
I´m trying to make Player lose control over unit´s movement but still be able to use that units spells.
The idea is that in game Player spawns a unit and this unit starts charging towards enemy´s (player2) spawning grounds. Second player does the same obviously. They clash in the middle of the map and they try to get to the spawning building of another player and destroy it. But once unit is spawned I don´t want it to be able to move backwards or sideways but I still want it to be able to use its spells.
I´ve kind of achieved this by changing the owner of the unit to another player which is allied with him. So it only attacks enemies, player loses control over his unit but it still uses spells it has. But the idea was that you need to keep an eye on your units mana and use the spell once it´s ready.