Skip to content
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

Laying optimisation suggestion #13

Open
inxomnyaa opened this issue Sep 9, 2021 · 5 comments
Open

Laying optimisation suggestion #13

inxomnyaa opened this issue Sep 9, 2021 · 5 comments

Comments

@inxomnyaa
Copy link

By using the bed sleeping mechanic, you can not rotate the model, and sometimes it gets offset.

I suggest using the AnimateEntityPacket with the "sleeping" animation

$animation = 'animation.player.sleeping';
$animpk = AnimateEntityPacket::create($animation, "", "", "", 0, [$e->getId()]);
@Wertzui123
Copy link

How would I rotate the player using the animate packet?

@inxomnyaa
Copy link
Author

Like literally how i wrote it.

@Wertzui123
Copy link

The code you sent only allows to me lay in one direction, which makes sense since I don't specify any rotations in the packet.

@inxomnyaa
Copy link
Author

Iirc that depends on the player's rotation

@Wertzui123
Copy link

I've tested it yesterday and I think always lay in the same direction, no matter where I was looking when starting the animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants