Overview
...
Excerpt |
---|
Indicates whether scavengers are enabled in this game. |
Scavengers are enabled or disabled on the game set-up screen. The map must define a scavenger base for the scavenger faction to actually appear.
Currently it's very difficult for the AI to do anything with scavengers. This is because they are outside the accepted player ID bounds of the JS API (see bug ticket #3123 for details).
On a 2 player map, scavengers are player 3 (or 4?). On a 4 player map, scavengers are player 7. Because the JS API will only select player IDs lower than maxPlayers, and maxPlayers is the number of selectable players on a map (eg. 2 for a 2 player map), the scavenger player is essentially inaccessible to your script.
If the map file doesn't contain any scavenger bases, then there will not be any scavengers even when this value is true
.
Examples
...