mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for setting stepheight for entities
This commit is contained in:
parent
ff7c380d0e
commit
251e3e01c7
7 changed files with 12 additions and 5 deletions
|
@ -188,6 +188,8 @@ void read_object_properties(lua_State *L, int index,
|
|||
getboolfield(L, -1, "is_visible", prop->is_visible);
|
||||
getboolfield(L, -1, "makes_footstep_sound", prop->makes_footstep_sound);
|
||||
getfloatfield(L, -1, "automatic_rotate", prop->automatic_rotate);
|
||||
getfloatfield(L, -1, "stepheight", prop->stepheight);
|
||||
prop->stepheight*=BS;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue