Simple enough, but when the plate is removed it creates a black void beneath, instead of the floor tile from that dungeon's wall set. Does anyone have any ideas as to how to get the floor to show after the plate is removed, please? (I'm hoping this hasn't been asked before...if it has, my apologies; I can't find it.)PressurePlate:destroy()
Removes the entity from the level.
Quick question on removing pressure plates
- SpiderFighter
- Posts: 789
- Joined: Thu Apr 12, 2012 4:15 pm
Quick question on removing pressure plates
From the Scripting Reference:
Re: Quick question on removing pressure plates
that's wierd... unless you use hidden ones.
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
Re: Quick question on removing pressure plates
I've only ever used plate:destroy() on hidden pressure plates where that doesn't happen. If I want to 'disable' a visable pressure plate I always
not sure if this fits your need though as it won't remove the plate from the floor.. just stop it being activated by the party (or monster/item depending).
Code: Select all
plate:setTriggeredByParty(false)Puzzle Frameworks - http://www.grimrock.net/forum/viewtopic.php?f=14&t=4564
Magic Pack - https://www.nexusmods.com/grimrock/mods/70
Area of Effect Spell System - http://www.grimrock.net/forum/viewtopic ... 150#p44382
Magic Pack - https://www.nexusmods.com/grimrock/mods/70
Area of Effect Spell System - http://www.grimrock.net/forum/viewtopic ... 150#p44382
- SpiderFighter
- Posts: 789
- Joined: Thu Apr 12, 2012 4:15 pm
Re: Quick question on removing pressure plates
Nope, this one is a vanilla "prison_pressure_plate."HaunterV wrote:that's wierd... unless you use hidden ones.
I think that will work nicely, thanks! I'm just using it to prevent a script from crashing...leaving it on the floor is more realistic than having it suddenly disappear.Grimwold wrote:I've only ever used plate:destroy() on hidden pressure plates where that doesn't happen. If I want to 'disable' a visable pressure plate I alwaysnot sure if this fits your need though as it won't remove the plate from the floor.. just stop it being activated by the party (or monster/item depending).Code: Select all
plate:setTriggeredByParty(false)
[EDIT: That worked brilliantly. No more crashing, and the puzzle now works as intended. Thanks again.]
Re: Quick question on removing pressure plates
whatabout putting down floor dirt so there is something to be rendered once the plate is removed?
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
- SpiderFighter
- Posts: 789
- Joined: Thu Apr 12, 2012 4:15 pm
Re: Quick question on removing pressure plates
Good thought. I don't need it anymore, but someone else down the road might find this thread useful. Lemme check it out, and I'll be back.HaunterV wrote:whatabout putting down floor dirt so there is something to be rendered once the plate is removed?
[EDIT: Couldn't get it to work at all with the dirt in the same space. Also, the dirt almsot completely covers the plate, no matter which order you place them in. While it doesn't work as a solution, it is a nifty trick for making plates that are almost entirely hidden!]