Permanenly disabling a timer/pressure plate/e.t.c

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Karinas23
Posts: 58
Joined: Thu Jul 24, 2014 8:57 pm

Permanenly disabling a timer/pressure plate/e.t.c

Post by Karinas23 »

Is there some way to permanently disable a pressure plate ? i want it to open a door when an item is left on it but once you walk through the door i want another pressure plate to permanently break the first pressure plate so that the door will close behind you even though the item is still on the first pressure plate. Got no idea how to go about it.


Im really good at aesthetic design but mechanical stuff is beyond me lol
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Permanenly disabling a timer/pressure plate/e.t.c

Post by Prozail »

You''ll need a small script that disables the floortrigger on the first plate.
do make a script_entity and put this function as a trigger on the second plate. (ofc. replace "dungeon_pressure_plate_1" with the id of the first plate)

Code: Select all

function disableplate()
    dungeon_pressure_plate_1.floortrigger:disable()
end
User avatar
Karinas23
Posts: 58
Joined: Thu Jul 24, 2014 8:57 pm

Re: Permanenly disabling a timer/pressure plate/e.t.c

Post by Karinas23 »

i thought it would be pretty much that but didnt know what i needed to write thank you very much

P.S~ does- itemID.thingtodeactivate:disable/enable()

work for pretty much everything ?
Post Reply