Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify set_multiplayer_authority documentation regarding propagation #79764

Conversation

kulkalkul
Copy link
Contributor

Docs state authority of a node is inherited from the parent but it is incorrect. It defaults to 1 (server's id) for every node. So I changed the part about it. I also added a sentence to clarify that newly added children do not inherit their parent's authority.

I recently got bitten by this doc. I checked the source code and figured that info is incorrect. I also double checked it by asking it on #networking channel.

@kulkalkul kulkalkul requested a review from a team as a code owner July 21, 2023 21:31
@YuriSizov YuriSizov changed the title Fix docs set_multiplayer_authority on propagation Clarify set_multiplayer_authority documentation regarding propagation Jul 24, 2023
@YuriSizov YuriSizov added this to the 4.2 milestone Jul 24, 2023
@YuriSizov YuriSizov merged commit 8ba8b95 into godotengine:master Jul 25, 2023
13 checks passed
@YuriSizov
Copy link
Contributor

Thanks! And congrats on your first merged Godot PR!

@kulkalkul kulkalkul deleted the fix_docs_set_multiplayer_authority_propagate branch July 25, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants