Skip to content

Commit a782a88

Browse files
committedMar 28, 2013
Fix parameter list of obj:set_attach() and obj:set_bone_position()
1 parent 8800896 commit a782a88

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

Diff for: ‎doc/lua_api.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -1295,9 +1295,15 @@ methods:
12951295
- set_wielded_item(item): replaces the wielded item, returns true if successful
12961296
- set_armor_groups({group1=rating, group2=rating, ...})
12971297
- set_animation({x=1,y=1}, frame_speed=15, frame_blend=0)
1298-
- set_attach(parent, "", {x=0,y=0,z=0}, {x=0,y=0,z=0})
1298+
- set_attach(parent, bone, position, rotation)
1299+
^ bone = string
1300+
^ position = {x=num, y=num, z=num} (relative)
1301+
^ rotation = {x=num, y=num, z=num}
12991302
- set_detach()
1300-
- set_bone_position("", {x=0,y=0,z=0}, {x=0,y=0,z=0})
1303+
- set_bone_position(bone, position, rotation)
1304+
^ bone = string
1305+
^ position = {x=num, y=num, z=num} (relative)
1306+
^ rotation = {x=num, y=num, z=num}
13011307
- set_properties(object property table)
13021308
LuaEntitySAO-only: (no-op for other objects)
13031309
- setvelocity({x=num, y=num, z=num})

0 commit comments

Comments
 (0)