Spawn if alive

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Duncan_B
Posts: 31
Joined: Wed Dec 19, 2012 8:43 pm
Location: Santa Cruz, Calif.-- USA

Spawn if alive

Post by Duncan_B »

How can I make a hidden pressure plate activate a spawner only if another monster is alive?
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: Spawn if alive

Post by Grimwold »

Should be fairly straightforward... do you know in advance the ID of the monster in question? e.g. skeleton_warrior_1 or is it a generic monster that you need to locate?


If you know the ID it should be as easy as linking the pressure plate to this script:

Code: Select all

function isAlive()
  if findEntity("skeleton_warrior_1") ~= nil then
    spawner_1:activate()
  end
end
Post Reply