/
Player Scope
Other great resources: Official JS API docs, Scripting Forum
Player Scope
Aubergine
Owned by Aubergine
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()).
Constant | Chat | Enums | Notes | Game Version |
---|---|---|---|---|
ALL_PLAYERS | ![]() | ![]() | Send message to all players, or get list of all players units/structures | 3.2 |
ALLIES | ![]() | ![]() | Send message to allies, or get list of allies units/structures | 3.2 |
ENEMIES | ![]() | ![]() | Get list of enemy units/structures | 3.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:
- chat() – send a chat message
- eventChat() – receive a chat message
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