aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-02 16:19:52 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-01-02 16:19:52 +0200
commit56f55ab1af941c5a7c7a7aef4217189f9f2d1680 (patch)
tree6af7ec25507ab666ffd8e5d6d082600fd31353c7 /data
parent2445cbbbdca54d40d1c0a069cc360b06bf44d291 (diff)
downloadminetest-56f55ab1af941c5a7c7a7aef4217189f9f2d1680.tar.gz
minetest-56f55ab1af941c5a7c7a7aef4217189f9f2d1680.tar.bz2
minetest-56f55ab1af941c5a7c7a7aef4217189f9f2d1680.zip
Add ObjectRef:getvelocity(), ObjectRef:setyaw() and ObjectRef:getyaw()
Diffstat (limited to 'data')
-rw-r--r--data/mods/default/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index c0df7c514..ac3ef1b8f 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -200,8 +200,11 @@
-- - set_hp(hp): set number of hitpoints (2 * number of hearts)
-- LuaEntitySAO-only: (no-op for other objects)
-- - setvelocity({x=num, y=num, z=num})
+-- - getvelocity() -> {x=num, y=num, z=num}
-- - setacceleration({x=num, y=num, z=num})
-- - getacceleration() -> {x=num, y=num, z=num}
+-- - setyaw(radians)
+-- - getyaw() -> radians
-- - settexturemod(mod)
-- - setsprite(p={x=0,y=0}, num_frames=1, framelength=0.2,
-- - select_horiz_by_yawpitch=false)