(info) Other great resources: Official JS API docs, Scripting Forum

DORDER_COMMANDERSUPPORT

Overview

Assign an attacker droid to a commander droid so that it will attack whatever the commander droid targets.

Availability

 Requires backport.dorder.js v0.1 or above.

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

// assign attackerDroid to commanderDroid
orderDroidObj(attackerDroid,DORDER_COMMANDERSUPPORT,commanderDroid);

Notes

The droid's current order can be determined from it's .order property. For more information see Droid object.

Unlike a sensor droid, you can attack any attacker droid to a commander (not just indirect fire weapons). The main benefits of using a commander are increased experience and simplified group management (see Commander user guide for more details).

When you assign a droid to a commander droid, the droid will automatically move to be in range of the commander's target, assuming it can reach the location. For example, if the commander droid is using hover propulsion it will be able to travel across water – if the attacker droids aren't using hover propulsion, they're not going to be able to follow the commander!

When you issue a command to the commander droid, all assigned attacker droids will perform the same command.

See also