#detect holding spyglass
1 messages · Page 1 of 1 (latest)
q.get_equipped_item_name('main_hand') == 'spyglass'
That's the correct way, but anyway it's deprecated now, no reason to use
I mentioned both ways as I didn't know if it was to be used client or server side. Client side requires !query.is_in_ui so that you don't get an error
yeah, that bug is pretty annoying
And it's not inconvenient enough to be fixed
Yeah, no one responded so I used that. I wanted to know if there was a query for the use of the spyglass
At the time I published it, I wanted to know if there was a query for the use of spyglass, but I didn't find it and no one answered so I improvised
if i use q.get_quipped_item_name('slot.inventory') could I assess whether the item is located in the player's inventory?
By the way, can I use the /playanimation condition argument to inform values?
Type variable.test=5
No that’s not how it works, for starters that query only allows for main and off hand slots, for inventory (and hotbar separately) you need to use q.is_item_name_any paired with molang loop to iterate through each slots and get your item
There’s an article about that on wiki afaik, you can check it for more info about this ^
Yes I saw it but adding it to my script that was already built would break it, so I would need a simpler one. But if the only way to get this overall rating is this then I'll try to adapt my code
here
Yes I know
Until now that I opened the code I realized that it is simple. Then it will be easy to adapt my animation