This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.


Net variables are not synced

Recommended Posts

Joachim    351


I'm currently working on a mod and I am using some net variables, such as net entity, as described here: 

These are the facts:

(1) The net variable is defined on both the client and server.

(2) The net variable is set to a certain value after some event has taken place (netvar:set(X)). Because of extensive debugging, I know that on the server side the value of this netvar is nil before the update and set to X after the update (netvar:value()).

(3) The client responds to changes on that net variable, but not in real time. It listens to the correct event, however it seems to ignore any changes to it. Interestingly enough, the client does register these events when leaving and rejoining.

What could be the cause of this? Seriously, I have no idea anymore and the level of frustration is high.

Thank you for your time.

- Joachim

Share this post

Link to post
Share on other sites