HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Disabling Movement

11-14-2005, 09:59 PM#1
TaintedReality
Ok, before you say 'put movement speed to 0', let me explain first. I want to have the unit wandering all the time(it is also able to create units btw), but not let the owner control the unit. Getting rid of the move button would work, as with units that build units right clicking just sets the rally point.
11-14-2005, 10:28 PM#2
Anitarf
You can make units unselectable by giving them the Locust ability, but that also makes them untargetable/unkillable.

You can counter any order given by the player with a trigger.

You can give the units to another player.

You cannot get rid of the move button without removing the Move ability,which prevents the unit from moving.
11-14-2005, 10:50 PM#3
TaintedReality
Ok, I need them to be killable, and I need them to be owned by that player(mainly just so people know who owns them, and they also add food. I could do this through triggers, but it wouldn't be worth it =P). Also, wandering triggers Unit - A Unit is Issued and Order Targeting a Point, and I don't know how to figure out if a player was the one that ordered the unit to move. I tried (Triggering Player) Equal to Player 1(Red), but that didn't do anything. Is it something other than triggering player? Or maybe wander is having the player order the unit to move.
11-15-2005, 02:36 PM#4
Tim.
Code:
(Owner of (Ordered unit)) Equal to Player 1 (Red)
11-15-2005, 06:33 PM#5
Vexorian
- No way to know which player is making an order. (Last post shows how to get the owner of the ordered unit, which is different than the player ordering the unit (For example shared unit control)

- No way to remove the move button without disabling movement / disabling every other button
11-15-2005, 08:57 PM#6
TaintedReality
Ok, I just decided to simulate wander with triggers. Then I can have a variable that tells whether they are wandering or being ordered to move by something else.
11-16-2005, 02:10 PM#7
Soultaker
Quote:
Originally Posted by TaintedReality
mainly just so people know who owns them

Well, you could just change the Owner to Neutral Passive, then set the Color and custom value to the Owner of the Unit.

Doing this, will make it look like that the person still owns it, and you would have a value so you can see who actually owns the unit.

-Soultaker