Page 1 of 1

How to create hidden pits?

Posted: Thu Sep 13, 2012 11:36 pm
by Montis
Well the title basically says it. I want to have trap doors that open when you step on them so you fall down.
I already though about using a silent teleporter to fake this with a similar room with a trapdoor, but the problem is that the party should be able to return to the place and see the open trapdoors. With multiple pits I would have to recreate the room too often to be feasible.

I also tried spawning a pit with: spawn("dungeon_pit",level,x,y,facing) but the standard floor doesn't get removed so there's some serious z-fighting going on afterwards, which looks very bad.

Any ideas?

Re: How to create hidden pits?

Posted: Thu Sep 13, 2012 11:48 pm
by Lmaoboat
Well you can have trap doors open when you step on them, but I don't think you can make them appear only when opened.

Re: How to create hidden pits?

Posted: Thu Sep 13, 2012 11:52 pm
by Montis
Well I basically want a trap that can open underneath the party when you pull a lever or push a button that will stay open afterwards but is hidden before.

Re: How to create hidden pits?

Posted: Fri Sep 14, 2012 12:59 am
by Komag
you could make a custom floor decoration object that has the same model as the floor but raised an inch, then have it disappear when you want to

Re: How to create hidden pits?

Posted: Fri Sep 14, 2012 6:39 am
by petri
What you probably want to do is to create a custom trapdoor model that looks identical to the floor when closed.

Re: How to create hidden pits?

Posted: Fri Sep 14, 2012 12:18 pm
by Komag
now why didn't I think of that?!