Jump to content

Potential client server sync issue with custom arrow


Mew

Recommended Posts

I have a working custom arrow/bow now (except that the bow doesn't look the same as the vanilla bow when rendered in the players hand and it doesn't "zoom in" the screen the longer you hold the right mouse key).

 

But that isnt the issue. What the issue is, is that when the arrow is fired it shoots and "lands" on the ground, the arrow is rendered above the ground in a seemingly random place. but if you walk to where the trajectory of the arrow should have ended it in the ground, you pick up the arrow from that location.

 

Any ideas on what is causing this? I believe it is a syncing issue between the client and server. Because if you either wait a seemingly random time or shoot a vanilla arrow and wait until the arrow renders, the issue seems to fix itself.

 

My code is exactly the same as thegrovesyproject101 at this site:

http://thegrovesyproject101.weebly.com/uploads/1/4/6/0/14605888/custom_arrow.txt

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

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.