Page 1 of 1

Units not resuming orders after beeing movecontrolled

Posted: 17 Mar 2013, 13:29
by Erik
I'm currently writing a factory that movecontrols units out to avoid them getting stuck inside(that part works) but there is one problem: They don't move to the waypoint (or do anything else i tell them to) despite it being shown on selecting them.
This behaviour is unexpected, annoying and completely breaks my AI, anyone know a fix?

Re: Units not resuming orders after beeing movecontrolled

Posted: 17 Mar 2013, 14:43
by knorke
I give two wait commands, for some reason that makes the unit move again:

Code: Select all

Spring.MoveCtrl.Disable (unitID)
	Spring.GiveOrderToUnit(unitID, CMD.WAIT, {}, {})
	Spring.GiveOrderToUnit(unitID, CMD.WAIT, {}, {})

Re: Units not resuming orders after beeing movecontrolled

Posted: 17 Mar 2013, 15:08
by Erik
Thanks that helps.

Re: Units not resuming orders after beeing movecontrolled

Posted: 18 Mar 2013, 08:40
by Google_Frog
I do WAITWAIT too. Maybe it should be on the wiki.

Re: Units not resuming orders after beeing movecontrolled

Posted: 18 Mar 2013, 15:45
by Silentwings
Can I ask if anyone has tested not using the WAITWAIT trick with 92.0+?