Progetto H — Riferimento API Documentazione & Scripting
Funzione Server Moderato

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

Non ancora tradotto

Sintassi

Lua
my_actor:SetNetworkAuthority(player = nil)

Parametri

Nome Tipo Predefinito Descrizione
player facoltativo Player nil Il nuovo giocatore che assumerà l'autorità di rete su questo Actor