Progetto H — API Reference API & Scripting Documentation
Function Server Moderate

Actor:SetNetworkAuthority

Sets the Player to have network authority over this Actor. This Player will be manually assigned to handle this Actor's physics and share its location with other clients. The authority assignment will still be overridden by the game automatically<br><br>Please refer to <a href="/docs/core-concepts/scripting/authority-concepts#network-authority">Network Authority</a> for more information

Syntax

Lua
my_actor:SetNetworkAuthority(player = nil)

Parameters

Name Type Default Description
player optional Player nil New player which will assume the Network Authority of this Actor