• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Movement limitation

Status
Not open for further replies.
Level 1
Joined
Feb 1, 2010
Messages
4
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.
 
Level 1
Joined
Feb 1, 2010
Messages
4
You'l coud try giving your units the shared shop ability (allows allies to buy items/units, cast spells, use/Move/take items (which can be exploited to move units arounds, but only if there are items in the inventory or on the ground) ).
Each melee race shop have this skill.
Thank you this works perfectly fine :D
 
Last edited:
Status
Not open for further replies.
Top