Skip to content

SetDiscoveryTracking

Chooses which kinds of discovery the players’ games report to the server.

Call it when the mode starts. Nothing is tracked until it is called: no message is sent and no game does any work. Setting it tells every player in the world and a player whose game joins gets it after their spawn. A reload of the game mode starts from nothing again - the new mode sets its own.

SetDiscoveryTracking(kinds)
Parameter Type
kinds boolean | string | table | nil true (every kind), a kind’s name, or a list of names - nil, false or {} track nothing

boolean - false when a word is no kind (nothing changes)

function OnGameModeInit()
SetDiscoveryTracking({ "places", "reading" }) -- the server keeps the places they find and the books they read
end

GetDiscoveryTracking · SetPlayerDiscoveryTracking · the Discovery - the map and the places a player found group of the index