#(Skullfurious) NPC Body yaw appears to always return 0.

39 messages · Page 1 of 1 (latest)

tired jasper
#

Not sure if this is a bug, or expected behaviour, I recall reading somewhere there isn't really a way to check the body yaw currently though.

Wondering what this tag is for, and what I should use instead.

            - if <player.item_in_hand.flag[active_manipulator]> == inspector_gadget:
                - narrate "<&e>Inspection Results:"
                - narrate "<&F>Health: <&6><player.target.health.round_to_precision[0.01]>"
                - narrate "<&F>X: <&6><[target].location.x.round_to_precision[0.001]> <&F>Y: <&6><[target].location.y.round_to_precision[0.001]> <&F>Z: <&6><[target].location.z.round_to_precision[0.001]>"
                - narrate "Body Yaw: <&6><[target].body_yaw>"
                - narrate "Head Yaw: <&6><[target].location.yaw>"
                - narrate "Sleeping: <player.target.is_sleeping>"
                - narrate "Sneaking: <player.target.is_sneaking>"
                - narrate "Sitting: <player.target.is_sitting>"
                - if <player.target.item_in_hand> == <item[air]>:
                    - narrate "Holding: Air"
                - else if <player.target.item_in_hand> != <item[air]>:
                    - if <player.target.item_in_hand>

Making an NPC inspection item. body_yaw seems to spit out accurate results when using the player, but not on the NPC for some reason.

dusty kindleBOT
#

(Skullfurious) NPC Body yaw appears to always return 0.

dusty kindleBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

tired jasper
#

For anyone curious. Pretty useful for debugging.

red rampart
#

it desyncs if you move away from the npc and back into view of the npc

#

typically fixed by moving the npc a little. making the npc punch the air used to fix it but i think that was changed at some point

#

not very reliable, i wouldnt use body_yaw

tired jasper
#

If you want their body to face their looking position you can just over rotate them by 45 degrees, and then rotate them back 45 degrees.

#

But yeah, you're right, body_yaw doesn't seem to work at all.

red rampart
#

it also desyncs for players if they are standing still, which players tend not to do so less of a problem

#

it's not the tag's fault

tired jasper
#

Something changed right?

red rampart
#

mojank's fault for lazy body rotation clientside tracking

tired jasper
#

I see. Yeah I've been able to successfully pose the body, relative to the facing direction, but apparently you're saying that would only be temp anyways.

red rampart
#

the tag just gets what the server thinks the body rotation is

tired jasper
#

Any reason in particular it's always zero to the server though for NPC's?

red rampart
#

!t body_yaw

wintry barnBOT
tired jasper
#

Like I mentioned, player body_yaw works fine™️ .

red rampart
#

you can look at the source code, denizen is just returning the value

tired jasper
#

No worries, I believe you.

red rampart
#

what's your goal with the script you're working on?

tired jasper
#

Just being able to diagnose, manipulate entities.

#

Probably not too useful at the moment, but basically adding tools and features to it currently.

#

For posing purposes, diagnostics, etc.

red rampart
#

gotcha

tired jasper
#

Alright then. I'll abandon the body rotation stuff for now. I have a way of rotating the body relative to its current head location, and theoretically I could just determine the body rotation if the player has manipulated an NPC recently, but it desyncs anyways making it useless.

I'm guessing wynncraft uses fake player giblets for all the corpses anyways.

#

So when they really want to pose something they just make it in blockbench more than likely

#

Thanks for the answer Mergu, I'll close this for now.

wintry skiffBOT
#
Resolved

Thread closed as resolved.