Essentially I'm looking for the easiest way to reject a move from a player and instead tell the unit to do nothing when an order is issued.
The avenue I've been trying so far is to use the trigger "Unit - any unit is issued an order to move". This seems to be working well and I can get all kinds of stuff like what they are ordered to attack or where they are ordered to move. What I cannot seem to do though is cancel/replace that order.
The "Issue order" function seems to be the only means to do such a task, and from the name I thought this would be simple! The function takes an ability command type instead of an order type, that was the first piece of weirdness. So I formed an ability command from an order I created to move to where the triggering unit is (move to the spot your already standing in). But this doesn't seem to function at all. A different order involving attacking a hard coded unit also did nothing.
Has anyone had any luck with issuing orders you generate yourself?
Essentially I'm looking for the easiest way to reject a move from a player and instead tell the unit to do nothing when an order is issued.
The avenue I've been trying so far is to use the trigger "Unit - any unit is issued an order to move". This seems to be working well and I can get all kinds of stuff like what they are ordered to attack or where they are ordered to move. What I cannot seem to do though is cancel/replace that order.
The "Issue order" function seems to be the only means to do such a task, and from the name I thought this would be simple! The function takes an ability command type instead of an order type, that was the first piece of weirdness. So I formed an ability command from an order I created to move to where the triggering unit is (move to the spot your already standing in). But this doesn't seem to function at all. A different order involving attacking a hard coded unit also did nothing.
Has anyone had any luck with issuing orders you generate yourself?
@admo: Go
Also, I found the "move unit instantly" function but this doesn't cancel the order.
@admo: Go
I was just able to do it with one action, like so:
Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
Thank you both! The stop order worked great rallion. And adusting the order to a point caused my move command to start working Zarakk.