Add files via upload

master^2
TheTermos 2019-12-07 18:11:05 +01:00 committed by GitHub
parent 8d42b6d936
commit e55304d60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -892,10 +892,6 @@ function mobkit.actfunc(self, staticdata, dtime_s)
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
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
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
if self.texture_no then
local props = {}