
ok actually I've found better solutionNutJob wrote:Much the same way here when he's spawning in the Ogre, just remove the chest and put the mimic in it's x,y.
Code: Select all
chest_3.chest:setMimic(true)
time to try this out!Jouki wrote:ok actually I've found better solutionNutJob wrote:Much the same way here when he's spawning in the Ogre, just remove the chest and put the mimic in it's x,y.Code: Select all
chest_3.chest:setMimic(true)
glad to helpDrKojak wrote:time to try this out!Jouki wrote:ok actually I've found better solutionNutJob wrote:Much the same way here when he's spawning in the Ogre, just remove the chest and put the mimic in it's x,y.Code: Select all
chest_3.chest:setMimic(true)
Edit* Works a treat, thanks man!
Code: Select all
function mimics()
local i = 1
local entity = findEntity("chest".."_"..i)
while entity ~= nil do
if math.random(1,10) == 1 then
entity.chest:setMimic(true)
end
i = i + 1
entity = findEntity("chest".."_"..i)
end
end