Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Used to bypass droid type filtering in functions that list or count droids.

 

Syntax

DROID_ANY

Notes

Can be used in countDroid() and enumDroid() to bypass the droid type filter.

Prior to Warzone 3.1.0, you'll need to manually define the constant:

const DROID_ANY = 15; // only required for WZ 3.1 RC3 or earlier

Example

var myDroidCount = countDroid(DROID_ANY, me);
Availability 3.1.0+

Requires:

  • Warzone 3.1.0 or above
Contents

Jump to:

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:

 

  • No labels