This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+2 votes

I'm not sure If I'm doing things right. I happened to stumble upon a big obstacle within my project.

I am aware that RPC functions are non-blocking but is there a way that a client can be notified if its puppet variable's value has changed.

If I remember correctly, Unity has this feature where you can hook a SyncVar variable onto a function whenever it gets updated, triggering that hooked function.

--- The general scenario ---
1) A client acquires a weapon.
2) Client RPC's host for the acquired weapon's weapon data // This section is non blocking - This part is my problem. Client has no way of determining if weapon data has arrive from the host in a single function.
3) Host sends weapon data to requesting client.
4) Client should receive weapon data so that client can be happy.

Thank you in advance.

in Engine by (14 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.