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?
Units not resuming orders after beeing movecontrolled
Moderator: Moderators
Re: Units not resuming orders after beeing movecontrolled
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
Thanks that helps.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Units not resuming orders after beeing movecontrolled
I do WAITWAIT too. Maybe it should be on the wiki.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Units not resuming orders after beeing movecontrolled
Can I ask if anyone has tested not using the WAITWAIT trick with 92.0+?