Add files via upload
parent
8d42b6d936
commit
e55304d60e
8
init.lua
8
init.lua
|
@ -892,10 +892,6 @@ function mobkit.actfunc(self, staticdata, dtime_s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.timeout and self.timeout>0 and dtime_s > self.timeout and next(self.memory)==nil then
|
|
||||||
self.object:remove()
|
|
||||||
end
|
|
||||||
|
|
||||||
if not self.memory then -- this is the initial activation
|
if not self.memory then -- this is the initial activation
|
||||||
self.memory = {}
|
self.memory = {}
|
||||||
|
|
||||||
|
@ -903,6 +899,10 @@ function mobkit.actfunc(self, staticdata, dtime_s)
|
||||||
if #self.textures > 1 then self.texture_no = random(#self.textures) end
|
if #self.textures > 1 then self.texture_no = random(#self.textures) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self.timeout and self.timeout>0 and dtime_s > self.timeout and next(self.memory)==nil then
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
|
||||||
-- apply texture
|
-- apply texture
|
||||||
if self.texture_no then
|
if self.texture_no then
|
||||||
local props = {}
|
local props = {}
|
||||||
|
|
Loading…
Reference in New Issue