Wishing there was a "Name:getPressurePlateState()"
So far I haven't found anything like that other than a trick with levers activated by plates, with the levers having their states recognized, which seems like something that shouldn't have to be done..
Is there a getState for plates?
Pressure Plates
Re: Pressure Plates
But there is!
PressurePlate:isDown()
and
PressurePlate:isUp()
Return true when they're down/up.
- Wolfrug
PressurePlate:isDown()
and
PressurePlate:isUp()
Return true when they're down/up.
- Wolfrug
Try my Mordor: Depths of Dejenol LoG-ification. Feedback much appreciated!
Re: Pressure Plates
Oooh okay so then I could write something like
function leverdoor()
if leverwest:getLeverState() == "activated" and
PressurePlate:isUp() == true then
Door:open()
else
Door:close()
end
end
?
Edit:
Huzzah! That worked! Thank you very much for the help.
function leverdoor()
if leverwest:getLeverState() == "activated" and
PressurePlate:isUp() == true then
Door:open()
else
Door:close()
end
end
?
Edit:
Huzzah! That worked! Thank you very much for the help.
Re: Pressure Plates
you can leave off the == true
Code: Select all
PressurePlate:isUp() then
Finished Dungeons - complete mods to play