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 »

These constants group players in various ways.

 

Constants

The constants are generally used with chat features (chat() and eventChat()) or game object enumeration (enumRange() or enumArea()).

ConstantChatEnumsNotesGame Version
ALL_PLAYERS(tick)(tick)Send message to all players, or get list of all players units/structures3.2
ALLIES(tick)(tick)Send message to allies, or get list of allies units/structures3.2
ENEMIES(error)(tick)Get list of enemy units/structures3.2

Note: The functions listed also allow chatting or filtering to a specific player via their player ID.

Availability:

Requires:

  • Warzone 3.2 or above

See also

Chat-related features:

Enumeration-related features:

  • enumArea() – get list of droids/structures in a given area
  • enumRange() – get list of doids/structures within a given range of a map position

 

  • No labels