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

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

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

by Drachenbauer32 » Sat Nov 09, 2019 22:00

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: 468
Joined: Mon Jul 24, 2017 18:15
GitHub: jastevenson303
IRC: jas_
In-game: jas

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

by jas » Sun Nov 10, 2019 19:49

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
2009-10-7 02:04:55: ACTION[Server]: jas activates
 

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

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

by Drachenbauer32 » Mon Nov 11, 2019 15:49

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


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 3 guests