diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-19 15:07:51 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-19 15:07:51 +0000 |
commit | 2bcd528e22ac9bd9bf9574f0da6cbefade1b7b76 (patch) | |
tree | 9f594d00ef3dc1419338db07a42f6edd7fb201c2 /api.txt | |
parent | 26d80126f556997954b41245f50f9ba1606aeb57 (diff) |
updated api.txt
Diffstat (limited to 'api.txt')
-rw-r--r-- | api.txt | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -301,6 +301,7 @@ Certain variables need to be set before using the above functions: 'self.terrain_type' integer containing terrain mob can walk on (1 = water, 2 or 3 = land) 'self.driver_attach_at' position offset for attaching player to mob 'self.driver_eye_offset' position offset for attached player view + 'self.driver_scale' sets driver scale for mobs larger than {x=1, y=1} Here is an example mob to show how the above functions work: @@ -357,6 +358,7 @@ mobs:register_mob("mob_horse:horse", { self.terrain_type = 3 self.driver_attach_at = {x = 0, y = 20, z = -2} self.driver_eye_offset = {x = 0, y = 3, z = 0} + self.driver_scale = {x = 1, y = 1} end -- if driver present allow control of horse |