Posted December 18, 20186 yr Hi there, So I want to prevent the player to use the drop item keybind if he is holding a specific item. I have already tried many different things, but none seemed to work quite well. Is there a way to override the default behavior of keyBindDrop when pressed? EDIT: Also I dont need to prevent the drop action inside an inventory, only the ingame drop keybind. Edited December 18, 20186 yr by F0X
December 18, 20186 yr Considering that you need to do this on client only the best course of action would be to set the value of GameSettings.keyBindDrop field to your custom implementation that returns false when needed in KeyBinding#isPressed.
December 18, 20186 yr Author Oh thx, works like a charm. Not sure why I didn't think of this myself tho
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.