summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-10 21:12:48 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-10 21:12:48 +0100
commit7515549c35c380fe1b6db508f7fe9aabdacc5ff3 (patch)
tree93e349b4d0cccb7d7a79b94fb4d6920776e071ff
parentf5c01821bbc954bbcc1e4f76b75002845953aedc (diff)
parent3bb336dfbd3574cf69ef197aa619de9639f05f0e (diff)
downloadredot-engine-7515549c35c380fe1b6db508f7fe9aabdacc5ff3.tar.gz
Merge pull request #87610 from Mickeon/documentation-MultiplayerAPI-peer-id
Mention Multiplayer.`get_remote_sender_id`'s 0 after await
-rw-r--r--doc/classes/MultiplayerAPI.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/MultiplayerAPI.xml b/doc/classes/MultiplayerAPI.xml
index 009d7c03ea..d5016867a7 100644
--- a/doc/classes/MultiplayerAPI.xml
+++ b/doc/classes/MultiplayerAPI.xml
@@ -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">