summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-26 10:03:37 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-26 10:03:37 +0100
commitc0e07d819b068d74a2f9164fce3343d12528b9a5 (patch)
treef313e2ed69c4b45f83ce7bc349a73268e3e02f56 /api.lua
parent88e7181a0283a26d3944b0bb52e54e981fa24cb3 (diff)
giced mobs:set_animation function
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/api.lua b/api.lua
index e87fcd9..6e368a5 100644
--- a/api.lua
+++ b/api.lua
@@ -1,9 +1,9 @@
--- Mobs Api (14th July 2017)
+-- Mobs Api (26th July 2017)
mobs = {}
mobs.mod = "redo"
-mobs.version = "20170714"
+mobs.version = "20170726"
-- Intllib
@@ -160,7 +160,7 @@ end
-- above function exported for mount.lua
-function mobs:set_animation(anim)
+function mobs:set_animation(self, anim)
set_animation(self, anim)
end
@@ -2408,6 +2408,7 @@ local mob_activate = function(self, staticdata, def, dtime)
self.object:set_properties(self)
set_yaw(self.object, (random(0, 360) - 180) / 180 * pi)
update_tag(self)
+ set_animation(self, "stand")
if use_cmi then
self._cmi_components = cmi.activate_components(self.serialized_cmi_components)