How to distribute data between Client <---> Server and different resources?

Hi everyone, I hope this thread will generate a lot of participation.

I am currently working on a big project and I keep reaching the point where I realize that my distribution of information (Client ↔ Server and between various resources) is not optimal.

Currently, I always request data from the server via the client (NETEVENT) and then send the data from the server (also NETEVENT) to the client. From here, I transfer the data to the other resources using export functions.

It works – but it makes everything a bit confusing.

Is there a best practice for this? How do you do it? How do you keep track and avoid confusing yourself?

Feel free to share your experiences!

You are basically already doing the right thing. Events are the way to go for client ↔ server communication. And inter resource communication happens through events or exports.

If you want to simply sync values between client/server including attaching those values to entities, you can use state bags as well:

1 Like

Thanks - i will take a look!