Page 1 of 1

How do i activate laying animation of the player in a bed?

PostPosted: Sat Nov 09, 2019 22:00
by Drachenbauer32
Hello

I have beds, wich switch the daytime, if using them.
All my player-characters have a lying animation at the same position in their animation-timeline.
How can i make the player appear lying on the bed for a few secconds, before switching daytime?

My beds are exact a half node high.
Must the laying animation in blender appear a half node-size below or above the ground-grid to make the player lay exactly on the surface of the bed?

Re: How do i activate laying animation of the player in a be

PostPosted: Sun Nov 10, 2019 19:49
by jas
Looking at the original beds mod, you can see that setting of the player model animation is set like so:
https://github.com/minetest/minetest_ga ... ns.lua#L98

You may find this method documented here:
https://github.com/minetest/minetest/bl ... .txt#L5599

Re: How do i activate laying animation of the player in a be

PostPosted: Mon Nov 11, 2019 15:49
by Drachenbauer32
i made my beds out of the original one.
So this functions.lua is still there.

But as i tested the bed, i didnĀ“t see the laying-pose of my character...