function apri()
if lever_2:isActivated() == true and
lever_3:isActivated() == true
then
dungeon_door_iron_8:open()
else
dungeon_door_iron_8:closed()
end
end
says attempt to call method 'isactivated' (a nil value)
what i did wrong this time? :p i just want to pull 2 lever to open a door
function apri()
if lever_2:isActivated() == true and
lever_3:isActivated() == true
then
dungeon_door_iron_8:open()
else
dungeon_door_iron_8:closed()
end
end
says attempt to call method 'isactivated' (a nil value)
what i did wrong this time? :p i just want to pull 2 lever to open a door
Why don't you try this:
if lever_2:getLeverState() == "activated" and
lever_3:getLeverState() == "activated"
then
dungeon_door_iron_8:open()
else
dungeon_door_iron_8:closed()
end
end