Page 1 of 1

Spring.Insert/RemoveUnitCmd Unit Exclusivity

Posted: 22 Aug 2008, 09:19
by REVENGE
Ok, say I use RemoveUnitCmd to prevent a player from issuing CMD.MOVE to a certain unit.

But if I select this unit, along with another unit who's CMD.MOVE is not disabled, then every MOVE command I issue to the other unit is carried over to my move disabled unit, essentially allowing it to move again.

Is there anyway to prevent this from happening?

Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity

Posted: 22 Aug 2008, 09:24
by Hoi
Maybe you could use cmd.stop when the unit gets cmd.move?

Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity

Posted: 22 Aug 2008, 09:48
by REVENGE
Hmm, but the unit should still be able to move on its own?

Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity

Posted: 22 Aug 2008, 10:58
by imbaczek
Use AllowedCommand for that.

Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity

Posted: 22 Aug 2008, 22:59
by REVENGE
Ye, thanks to you and KDR.