Jump to content

Recommended Posts

Posted

I made a custom bow; everything works great, but for some reason after switching the inventory slot that the bow is in using the number keys 1-9, it will not fire an arrow until I click on it (i.e. move even just back into the same slot) with the mouse, after which it functions again normally.

 

Even more strange is that it correctly nocks an arrow and is set in use, but simply fails to fire the arrow.

 

Here is the bow's code, and here is a step-by-step of what I did:

 

0. shoot bow, works great

1. open player inventory, highlight custom bow in action bar

2. press any number key, changing the bow's action bar slot to that index

3. scroll over to the bow with the mouse wheel or by pressing the number key again

4. right-click to use; arrow shows as nocked and animation / icon plays correctly

5. release right-click: no arrow is fired

6. left-click on bow, place back in slot, works just fine

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.

×
×
  • Create New...

Important Information

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