Discussion > Editing
Trigger on death?
(1/1)
Kr00zA:
Have a slight problem.
Have a sector I want to lower when a certain monster is killed.
Monster is a spawner. Appears when something is picked up.
That part works fine.
So pick up is tagged 13... monster is tagged 13. All is good.
Monster is also tagged as a 'spawner' and 'trigger on death'
Have a sector I want to lower tagged 13 and a line def tagged 13.
Line def is also tagged as 'triggered by dead things' with a special ' Floor Lower'
But the sector will not lower when the spawned monster is killed.
Can anyone tell me what I've done wrong? ::)
sector666:
Most likely reason: What's the height of the tallest floor next to the sector tagged 13? Is it the same floor height as the tagged sector?
Floor Lower only lowers to the nearest floor - meaning if you've got a sector next to 13 with the same floor height then nothing will happen.
Oddly enough Floor Lower will actually rise up to the highest floor, if there's a higher floor next to a tagged sector. If it raises it makes the floor go up instantly (vanilla doom behaves this way too). So that name of Floor Lower can really be pretty misleading.
"Floor Lower to Nearest" would be about as accurate as it could get.
Kr00zA:
The sector works fine if its switch activated. And it also works fine with a monster tagged with 'trigger on death'
The problem happens when said monster is a spawner and the tag number is being used both to spawn the monster, and activate the sector when the monster is killed. ::)
sector666:
--- Quote from: Kr00zA on May 14, 2012, 12:16:31 PM ---The problem happens when said monster is a spawner and the tag number is being used both to spawn the monster, and activate the sector when the monster is killed. ::)
--- End quote ---
That's confusing. I've been doing a similar thing in something I was working on, with the exception that the monsters are spawned via macro, and the monsters dying triggers another macro. But the same tag that's used to spawn them is activated upon death. And it's been working just fine.
Maybe the pickup having the same tag could be screwing things up? You could give it a different tag and have it run a macro to spawn the monster, but I don't know if that's the cause.
The only other thing I can think of is if you have some monsters (or other Things) that are accidentally tagged 13 and set to spawn. If they weren't in play when you did the non-spawn death test, and the spawn activation is making them show up, that could explain why the spawning death isn't working but non-spawning death is.
Kr00zA:
Far as I can tell the tagging and actions are ok. Seems to be another one of those things I just can't work out why it's not working.
I'll add that to my 'Lights flicker randomly' problem with a few sectors, and my 'Perpetual Raise' plats that act funny when the room's depth is changed ;)
I got round the problem simply by making the sector lower via a switch.
And got rid of my Hectic like room and made a better one that doesn't use 'perpetual raise' action.
Navigation
[0] Message Index
Go to full version