Code: Select all
function caterina()
if dungeon_secret_button_small_4:toggle() == true and
dungeon_secret_button_small_3:toggle() == true
then
dungeon_door_metal_2:open()
else
dungeon_door_metal_2:closed()
end
endCode: Select all
function caterina()
if dungeon_secret_button_small_4:toggle() == true and
dungeon_secret_button_small_3:toggle() == true
then
dungeon_door_metal_2:open()
else
dungeon_door_metal_2:closed()
end
endattempt to call method toggle a nil value
Is that so? Cool! This made several things more simple just like that.Komag wrote:yes, it will, if you connect the counter to the door with "any"-->"toggle"