Merge pull request #87610 from Mickeon/documentation-MultiplayerAPI-peer-id

Mention Multiplayer.`get_remote_sender_id`'s 0 after await
This commit is contained in:
Rémi Verschelde 2024-03-10 21:12:48 +01:00
commit 7515549c35
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
<return type="int" />
<description>
Returns the sender's peer ID for the RPC currently being executed.
[b]Note:[/b] If not inside an RPC this method will return 0.
[b]Note:[/b] This method returns [code]0[/code] when called outside of an RPC. As such, the original peer ID may be lost when code execution is delayed (such as with GDScript's [code]await[/code] keyword).
</description>
</method>
<method name="get_unique_id">