浏览代码

Merge pull request #79764 from kulkalkul/fix_docs_set_multiplayer_authority_propagate

Clarify `set_multiplayer_authority` documentation regarding propagation
Yuri Sizov 2 年之前
父节点
当前提交
8ba8b9581a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      doc/classes/Node.xml

+ 2 - 2
doc/classes/Node.xml

@@ -761,8 +761,8 @@
 			<param index="0" name="id" type="int" />
 			<param index="0" name="id" type="int" />
 			<param index="1" name="recursive" type="bool" default="true" />
 			<param index="1" name="recursive" type="bool" default="true" />
 			<description>
 			<description>
-				Sets the node's multiplayer authority to the peer with the given peer ID. The multiplayer authority is the peer that has authority over the node on the network. Useful in conjunction with [method rpc_config] and the [MultiplayerAPI]. Inherited from the parent node by default, which ultimately defaults to peer ID 1 (the server). If [param recursive], the given peer is recursively set as the authority for all children of this node.
-				[b]Warning:[/b] This does [b]not[/b] automatically replicate the new authority to other peers. It is developer's responsibility to do so. You can propagate the information about the new authority using [member MultiplayerSpawner.spawn_function], an RPC, or using a [MultiplayerSynchronizer].
+				Sets the node's multiplayer authority to the peer with the given peer ID. The multiplayer authority is the peer that has authority over the node on the network. Useful in conjunction with [method rpc_config] and the [MultiplayerAPI]. Defaults to peer ID 1 (the server). If [param recursive], the given peer is recursively set as the authority for all children of this node.
+				[b]Warning:[/b] This does [b]not[/b] automatically replicate the new authority to other peers. It is developer's responsibility to do so. You can propagate the information about the new authority using [member MultiplayerSpawner.spawn_function], an RPC, or using a [MultiplayerSynchronizer]. Also, the parent's authority does [b]not[/b] propagate to newly added children.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set_physics_process">
 		<method name="set_physics_process">