View topic - How to use the GiveOrderToUnit with the CMD.STOP



All times are UTC + 1 hour


Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 19 Mar 2012, 04:23 

Joined: 12 Jan 2012, 04:10
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.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.