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 6 Next »

Overview

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.

Values

ValueNotes
true

Scavengers are enabled. However, this doesn't mean there will be scavengers on the map!

If the map file doesn't contain any scavenger bases, then there will not be any scavengers even when this value is true.

false

Scavengers are disabled and the map will not contain any scavengers.

If the map file contains scavenger bases/units, they will be removed from the map when this value is false.

Examples

none yet

  • No labels