diff options
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r-- | src/scriptapi.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index 9c5bbcc5b..3c505c881 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -2737,7 +2737,7 @@ private: return 0; } - // setboneposrot(std::string bone, v3f position, v3f rotation) + // setboneposrot(self, std::string bone, v3f position, v3f rotation) static int l_set_bone_posrot(lua_State *L) { ObjectRef *ref = checkobject(L, 1); @@ -2758,8 +2758,7 @@ private: return 0; } -// Part of the attachment structure, not used yet! - // set_attachment() // <- parameters here + // set_attachment(self, parent, bone, position, rotation) static int l_set_attachment(lua_State *L) { ObjectRef *ref = checkobject(L, 1); @@ -2778,8 +2777,6 @@ private: if(!lua_isnil(L, 5)) rotation = read_v3f(L, 5); // Do it - -//lua_pushnumber(L, cobj->getId()); // Push id co->setAttachment(parent, bone, position, rotation); return 0; |