diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-03-28 01:09:01 +0100 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-03-28 01:09:01 +0100 |
commit | a782a88913649e1aecd0ebc51ee8a998175be226 (patch) | |
tree | 2c28b019c5f4d39a72534dfa5ad3db5d22e7b00a /doc | |
parent | 8800896824d609c754eee38d3720a112f4216e57 (diff) | |
download | minetest-a782a88913649e1aecd0ebc51ee8a998175be226.tar.gz minetest-a782a88913649e1aecd0ebc51ee8a998175be226.tar.bz2 minetest-a782a88913649e1aecd0ebc51ee8a998175be226.zip |
Fix parameter list of obj:set_attach() and obj:set_bone_position()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 38b89f140..8ef92bdf3 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1295,9 +1295,15 @@ methods: - set_wielded_item(item): replaces the wielded item, returns true if successful - set_armor_groups({group1=rating, group2=rating, ...}) - set_animation({x=1,y=1}, frame_speed=15, frame_blend=0) -- set_attach(parent, "", {x=0,y=0,z=0}, {x=0,y=0,z=0}) +- set_attach(parent, bone, position, rotation) + ^ bone = string + ^ position = {x=num, y=num, z=num} (relative) + ^ rotation = {x=num, y=num, z=num} - set_detach() -- set_bone_position("", {x=0,y=0,z=0}, {x=0,y=0,z=0}) +- set_bone_position(bone, position, rotation) + ^ bone = string + ^ position = {x=num, y=num, z=num} (relative) + ^ rotation = {x=num, y=num, z=num} - set_properties(object property table) LuaEntitySAO-only: (no-op for other objects) - setvelocity({x=num, y=num, z=num}) |