Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
Stores the player ID your script is associated with... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
me |
Values
The value of me will be an integer in the range 0 ≤ me ≤ Math.max(scavengerPlayer, maxPlayers).
- Player 0 is always the human game host.
- There can be up to 9 additional normal (human or AI) players in a game (player IDs 1 → maxPlayers).
- If scavengers are enabled, there will also be an additional scavengerPlayer.
In Warzone 3.2, the value of me was updated so that hackChangeMe() could be used to set a value of -1. When this happens, the script will receive almost all events from all players. This is useful in 'extra' scripts, often used to manage missions, as they can get a much more comprehensive view on game state.
An additional global, selectedPlayer, allows you to determine which of the players the local host localhost human is playing as.
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// get a list of my droids var myDroids = enumDroid(me); |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|