ServerAPI

Updated 7 months ago

ModdedServer

ModdedServer allows mod developers to put the user in modded only matchmaking to prevent cheating in non-modded games.

If your mod should place the user in modded matchmaking, call this method:

LC_API.ServerAPI.ModdedServer.SetServerModdedOnly()

Networking

Networking lets you send data to other players, allowing you to sync things across the server.

Broadcast - Call this method to send data. Supported data types are: string, int, float, Vector3. The signature is an identifier to use when receiving data.

GetString - Delegate for receiving a string value. The first parameter is the data, and the second parameter is the signature.

GetInt - Delegate for receiving an int value. The first parameter is the data, and the second parameter is the signature.

GetFloat - Delegate for receiving a float value. The first parameter is the data, and the second parameter is the signature.

GetVector3 - Delegate for receiving a Vector3 value. The first parameter is the data, and the second parameter is the signature.