Skip to content

IsPlayerDiscoveryKnown

Whether the record of a kind is the player’s game’s own.

true once a whole report of the kind has arrived or the mode set it. A record that is still empty because the game has not reported yet is no record: a mode that saves on a timer waits for this before it writes, so it never saves a fresh record over a character’s saved one. For a list of kinds it is true when every one is known.

IsPlayerDiscoveryKnown(pid, kinds)
Parameter Type
pid number the player
kinds boolean | string | table the kind, or a list of them

boolean

if IsPlayerDiscoveryKnown(pid, "places") then savePlaces(pid) end

GetPlayerDiscovery · OnPlayerDiscoveryChange · the Discovery - the map and the places a player found group of the index