SetPlayerDiscoveryTracking
Gives one player a set of tracked kinds of their own, over the server-wide one.
The kinds are taken as in SetDiscoveryTracking: {} or false make this player track nothing, whatever the server-wide set
says; nil is the exception - it gives the player’s own set up, and they follow the server-wide set again. A reload of the game
mode (ReloadGameMode) clears every player’s own set too: they follow the new mode’s server-wide set until it calls this
again.
Syntax
Section titled “Syntax”SetPlayerDiscoveryTracking(pid, kinds)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
kinds |
boolean | string | table | nil | as SetDiscoveryTracking; nil follows the server-wide set again |
Returns
Section titled “Returns”boolean - false when there is no such player or a word is no kind
Example
Section titled “Example”-- a guest keeps no map: their game reports nothingfunction OnPlayerConnect(pid) SetPlayerDiscoveryTracking(pid, {})endSee also
Section titled “See also”SetDiscoveryTracking · GetPlayerDiscoveryTracking · the Discovery - the map and the places a player found group of the index
