Is this a bug or is something wrong with the object? Thanks, -Lark
Code: Select all
defineObject {
name = "exploding_barrel_block",
baseObject = "barrel_crate_block",
components = {
{
class = "Health",
name ="health",
health = 30,
onDie = function(c)
local i, j
for i = -1, 1 do
for j = -1, 1 do
spawn("fireburst", c.go.level, c.go.x + i, c.go.y + j, 0, c.go.elevation)
end
end
end
},
},
}