thanks a lot man, but not sure why, nothing is happening, door wont open. Do I need to place some invisible platform under pushable_triggers or something like that ? is this script working for you ?Isaac wrote:Place this in a script and connect all three plates.Drakkan wrote:guys pls help with script, I need door1 to be opened when three pushable_floor_triggers (called trigger1, trigger2, trigger3) have pushable_block (called block1, block2, block3) on them. I tried to play with counters, but there is only activation by item, not by object :/
Also there should be some plate(plate1), which when activated, will teleport block1-3 to its original position (reset). Thanks for any helpCode: Select all
function checkBlocks() local plate = { {trigger1.x, trigger1.y}, {trigger2.x, trigger2.y}, {trigger3.x, trigger3.y} } local block = { {block1.x, block1.y}, {block2.x, block2.y}, {block3.x, block3.y} } for z = 1, 3 do for w = 1,#plate do if plate[z][w] ~= block[z][w] then return end end end door1.door:open() end