Page 1 of 1
Spawn if alive
Posted: Thu Dec 27, 2012 12:03 am
by Duncan_B
How can I make a hidden pressure plate activate a spawner only if another monster is alive?
Re: Spawn if alive
Posted: Thu Dec 27, 2012 1:03 am
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