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

Post Reply
User avatar
Drachenbauer32
Member
Posts: 105
Joined: Wed Aug 28, 2019 18:11

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

by Drachenbauer32 » Post

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?

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

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

by jas » Post

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

User avatar
Drachenbauer32
Member
Posts: 105
Joined: Wed Aug 28, 2019 18:11

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

by Drachenbauer32 » Post

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...

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests