+1 vote

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.

asked Apr 25 in Engine by Toffe (13 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 How to use this Q&A? before posting your first questions.