Other great resources: Official JS API docs, Scripting Forum
DORDER_NONE
Overview
Indicates that a droid is currently idle.Availability
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.
Example
if (myDroid.order == DORDER_NONE) { // give it something to do! }
Notes
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.
See also
- Droids – quick reference of API features relating to droids
- eventDroidIdle() – this event is triggered when one of your droids becomes idle.