Networking-related APIs
This section lists all networking-related APIs for your reference.
ParaScript
Determines if you own the current object yourself. | |
Directly obtains the player object of an owner. | |
Determines if a player is the owner of the current object. | |
Requests ownership. | |
Sets a new owner. This API can only be invoked by owners. | |
Sends messages to an owner. | |
Sends messages to all players, including yourself. | |
Sends messages to a certain player. | |
Invokes a certain function of an owner. | |
Invokes a certain function of a player. | |
This event is sent to everyone when a network object is generated. | |
This event is sent to the owner, who will receive an ownership request. | |
This event is sent to everyone when ownership is transferred. |
ParaNetService
Specifies whether the room data has been completely synchronized. | |
This event is triggered when the room data has been completely synchronized. You can listen in on this event whenever you want to initialize your client. |
Synchronization Variable API
Assigns a value to the synchronization variable. | |
Gets the value of a synchronization variable. | |
This event is triggered when a synchronization variable changes. |
Updated 2 days ago