Sign in to follow this  

Net variables are not synced

Recommended Posts

Joachim    350
Posted (edited)


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

Edited by Joachim

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this