Jump to content

Sync capabilities to each nearby player


kaiser_

Recommended Posts

Hello.

I want to sync a player capability to every client that tracks a specific chunk, and I probably know the way to do it. However I'm worried about the other clients that did not receive the packet, as they might need this information later.

Here is the problem: I don't know how to send this information to every new player who loads the chunk. As far as I know, the packet will only be sent when there is a change, but what about the players who did not even receive the first packet? Will they only receive the information when the change occur?

eg.: if a player has 2 mana, and someone loads the chunk where this player is standing, will the client only receive this information after this capability changes to 3(change occur, so the packet will be sent), or there is a way to continuously sync this value to new clients? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.