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?
Spring.Insert/RemoveUnitCmd Unit Exclusivity
Moderator: Moderators
Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity
Maybe you could use cmd.stop when the unit gets cmd.move?
Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity
Hmm, but the unit should still be able to move on its own?
Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity
Use AllowedCommand for that.
Re: Spring.Insert/RemoveUnitCmd Unit Exclusivity
Ye, thanks to you and KDR.