diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-29 15:28:53 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-29 15:28:53 +0000 |
commit | f7798e1b29c6d4620d8dd8c8053ef4c110d2a9fc (patch) | |
tree | 41eb580450147c4e0dfbfe0d52c745a99ebd4f03 /api.txt | |
parent | ef3217d77f6cb5fb5259b673eea99e5af6da8fee (diff) |
added dtime to drive function
Diffstat (limited to 'api.txt')
-rw-r--r-- | api.txt | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |