Player freeze after moving while in useItemToState
Player will be fully freezed (stucked) after moving left/right while using an item with useItemToState
Steps to reproduce:
- Use the "lute" command
- Hold the LMB mouse button
- While holding LMB mouse button try to move your player left/right
- Release LMB button
Current behavior:
The player will be fully freezed (stucked)
Expected behavior:
Player should not be able to move left/right while using items (with schemaName)
Example code:
addEventHandler("onPlayerCommand", function (pid, cmd, params) {
switch(cmd) {
case "lute": {
local item = Items.id("ITMI_LUTE")
useItemToState(pid, item, 1)
}
}
})
P.S.: Due the fact that useItemToState
works as a hack I don't expect any proper solution for this. At least it will be good to have a function to reset item state for player