New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't move NPC head trougth API #1276

Closed
checkium opened this Issue Aug 22, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@checkium

checkium commented Aug 22, 2017

When I teleport the NPC to a location with a specific yaw, his body moves but the head stays still.

@jorisguffens

This comment has been minimized.

Show comment
Hide comment
@jorisguffens

jorisguffens Oct 15, 2017

bump

Happens too with my code:

npc.spawn(loc); npc.faceLocation(loc);

The npc is spawned on the right location but always looks to yaw: 0, pitch: 0
In the saves.yml file the yaw is NaN and pitch is 0.

We use paper 1.12.2 and citizens 2.0.22-SNAPSHOT

jorisguffens commented Oct 15, 2017

bump

Happens too with my code:

npc.spawn(loc); npc.faceLocation(loc);

The npc is spawned on the right location but always looks to yaw: 0, pitch: 0
In the saves.yml file the yaw is NaN and pitch is 0.

We use paper 1.12.2 and citizens 2.0.22-SNAPSHOT

@mcmonkey4eva

This comment has been minimized.

Show comment
Hide comment
@mcmonkey4eva

mcmonkey4eva Oct 15, 2017

Member

@jorisguffens that code is wrong, faceLocation is a TARGET to LOOK AT, not a location to gather a yaw from. A location looking at itself will of course produce a NaN.

Member

mcmonkey4eva commented Oct 15, 2017

@jorisguffens that code is wrong, faceLocation is a TARGET to LOOK AT, not a location to gather a yaw from. A location looking at itself will of course produce a NaN.

@fullwall fullwall closed this Mar 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment