Returns the players object associated with the Scavenger faction, even if Scavengers are disabled. |
var scavs = Players.scavenger; // returns scav players object |
The Players Object associated with the Scavenger faction.
The Players Object will be returned even if Scavengers are not present on the map.
This is useful because the players object's .isAlive property is a much more accurate and concise way to determine if there are Scavengers roaming the map than using the native scavengers and scavengerPlayer globals:
Scavengers don't have a start position, so:
Players.scavenger.position == undefined
var scavsRoamingMap = Players.scavenger.isAlive; |
AvailabilityRequires:
|
ContentsJump to: |
See alsoRelated articles:
|
Players APITopics: |