SimpleLay
SimpleLay copied to clipboard
Laying optimisation suggestion
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()]);