Killing spawned monsters

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Billick
Posts: 201
Joined: Thu Apr 19, 2012 9:28 pm

Re: Killing spawned monsters

Post by Billick »

This actually doesn't look bad. It destroys the cube object, and then immediately spawn a metal_junk_block in the same location. If you want you can add some effects and sounds to make it a bit more convincing. I think I'm going to use this for now.

Code: Select all

function killCube()
  for i in entitiesAt(1,6,14) do
    if i.name == "cube"
    then
      i:destroy()
      spawn("metal_junk_block", 1, 6, 14, 2, "cube_junk")
    end
  end
end
Halls of Barrian - current version 1.0.3 - Steam Nexus
Me Grimrock no bozo!
Post Reply