fetchOnlineCharacters
Retrieves all currently active survivors for the server. This may include dead survivors if they have died and not respawned yet, but this function is guaranteed to return only one survivor per player that is currently playing on the server.
Signatures
beacon.fetchOnlineCharacters();
Return Values
Type | Notes |
---|---|
Array | An array of Character objects. It is possible for the array to be empty. |
Examples
Fetch all active survivors on the server
const characters = beacon.fetchOnlineCharacters();