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

.droidType

Defines the type of a droid – the .droidType of a Droid object.

 

Constants

  • DROID_WEAPONA droid capable of attacking other droids.
  • DROID_CYBORGA cyborg warrior capable of attacking the enemy.
  • DROID_COMMANDA commander unit, to which other units can be assigned.
  • DROID_ECMA droid that has an Electronic Counter Measures (radar jammer) turret.
  • DROID_SENSOR
  • DROID_CONSTRUCTA construction truck or a cyborg engineer.
  • DROID_SUPERTRANSPORTERA heavy transport unit, capable of airlifting any type of droid (including VTOLs) to some other location on the map...
  • DROID_PERSONA droid that uses "legs" propulsion, for example a civilian or a scavenger machinegunner.
  • DROID_REPAIRA droid that has a repair turret, capable of repairing other droids.
  • DROID_TRANSPORTERA cyborg transporter (or possibly a super transporter in Warzone 3.1 Beta 4 and earlier), capable of airlifting droids to some other location on the map.
  • DROID_ANYUsed to bypass droid type filtering in functions that list or count droids.

Scripting: Droids

Related objects:

Constants:

  • .action – what action is the droid doing?
  • .droidType – what category of droid is it?
  • .order – what is the droids order?

Create them:

Organise them:

List or count them:

Tell them what to do:

How to's:

Transfer them between players:

Find out what's happening to droids:

Remove them:

Player Initialisation: