Skip to content

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.

SetPlayerDiscoveryTracking(pid, kinds)
Parameter Type
pid number the player
kinds boolean | string | table | nil as SetDiscoveryTracking; nil follows the server-wide set again

boolean - false when there is no such player or a word is no kind

-- a guest keeps no map: their game reports nothing
function OnPlayerConnect(pid)
SetPlayerDiscoveryTracking(pid, {})
end

SetDiscoveryTracking · GetPlayerDiscoveryTracking · the Discovery - the map and the places a player found group of the index