Re: Scripting a Pressure Plate puzzle - Help!
Posted: Mon Aug 12, 2013 4:47 pm
No problem, i self didn't have a lot of free time the last weeks. But I tried several new things and a friend tried to help me a bit ... but it doesn't work yet.
Thats what he wrote at the end of the script:
function isPressed()
counter = counter + 1
local correct_plate = findEntity(runes[counter])
if not correct_plate:isDown() then
counter = 0
end
if counter == #runes then
rune_doors:open()
for i = 0, 3 do
rune_doors_name:open()
end
counter = 0
end
Maybe i will give up to open several doors and only open one door, but then i still have to signal the player, when he pressed the right pressure plates.
Thats what he wrote at the end of the script:
function isPressed()
counter = counter + 1
local correct_plate = findEntity(runes[counter])
if not correct_plate:isDown() then
counter = 0
end
if counter == #runes then
rune_doors:open()
for i = 0, 3 do
rune_doors_name:open()
end
counter = 0
end
Maybe i will give up to open several doors and only open one door, but then i still have to signal the player, when he pressed the right pressure plates.