Page 1 of 1

How to use the GiveOrderToUnit with the CMD.STOP

Posted: 19 Mar 2012, 04:23
by super_g
I am trying to get a unit to stop. I can get the unit to move, attack and other commands using the GiveOrderToUnit function.

When I try:
Spring.GiveOrderToUnit(currentUnitID, CMD.STOP,{},{})

I get the following error message:
Unsafe attempt to change game state

If anyone knows why the stop command would be considered unsafe that would be great thanks.