Indicates that a droid is currently idle. |
Requires backport.dorder.js.
This isn't a standard feature of the JS API, however it's a constant used by the game engine so it's recognised by Warzone from at least 3.1 Beta 1 onwards.
if (myDroid.order == DORDER_NONE) { // give it something to do! } |
The droid's current order can be determined from it's .order
property. For more information see Droid object.
If you want to force a droid to become idle via the JS API, you should use DORDER_STOP or DORDER_HOLD instead.