summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-12-29 15:28:53 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-12-29 15:28:53 +0000
commitf7798e1b29c6d4620d8dd8c8053ef4c110d2a9fc (patch)
tree41eb580450147c4e0dfbfe0d52c745a99ebd4f03 /api.txt
parentef3217d77f6cb5fb5259b673eea99e5af6da8fee (diff)
added dtime to drive function
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/api.txt b/api.txt
index de137f2..209d3f3 100644
--- a/api.txt
+++ b/api.txt
@@ -281,7 +281,7 @@ This function will detach the player currently riding a mob to an offset positio
'offset' position table containing offset values
-mobs:drive(self, move_animation, stand_animation, can_fly)
+mobs:drive(self, move_animation, stand_animation, can_fly, dtime)
This function allows an attached player to move the mob around and animate it at same time.
@@ -289,6 +289,7 @@ This function allows an attached player to move the mob around and animate it at
'move_animation' string containing movement animation e.g. "walk"
'stand_animation' string containing standing animation e.g. "stand"
'can_fly' if true then jump and sneak controls will allow mob to fly up and down
+ 'dtime' tick time used inside drive function
Certain variables need to be set before using the above functions:
@@ -356,7 +357,7 @@ mobs:register_mob("mob_horse:horse", {
-- when riding mob call drive function to control
if self.driver then
- mobs.drive(self, "walk", "stand", false)
+ mobs.drive(self, "walk", "stand", false, dtime)
return false -- skip rest of mob functions
end