If I would type a simple check script like:
Code: Select all
function checkPlate()
if plate_1:isDown() == true
then
door1:open()
end
end
How to do this with a light source like a ceiling lamp?
The following:
Code: Select all
function checkLamp()
if lamp_1:activated() == true
then
door_1:open()
end
end
So what am I doing wrong?
Thanks.