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.
Syntax
Section titled “Syntax”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 |
Returns
Section titled “Returns”boolean - false when a word is no kind (nothing changes)
Example
Section titled “Example”function OnGameModeInit() SetDiscoveryTracking({ "places", "reading" }) -- the server keeps the places they find and the books they readendSee also
Section titled “See also”GetDiscoveryTracking · SetPlayerDiscoveryTracking · the Discovery - the map and the places a player found group of the index
