How to use the GiveOrderToUnit with the CMD.STOP

How to use the GiveOrderToUnit with the CMD.STOP

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
super_g
Posts: 13
Joined: 12 Jan 2012, 04:10

How to use the GiveOrderToUnit with the CMD.STOP

Post 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.
Post Reply

Return to “AI”