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.
Syntax
Section titled “Syntax”IsPlayerDiscoveryKnown(pid, kinds)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
kinds |
boolean | string | table | the kind, or a list of them |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsPlayerDiscoveryKnown(pid, "places") then savePlaces(pid) endSee also
Section titled “See also”GetPlayerDiscovery · OnPlayerDiscoveryChange · the Discovery - the map and the places a player found group of the index
