The code i have looks like this:
Code: Select all
function createPlate()
spawn("temple_pressure_plate", 1, 12, 0, 0, "triggerPlate")
triggerPlate:addConnector("activate", "plateDoor", "open")
triggerPlate:addConnector("deactivate", "plater1", "removePlate")
end
function removePlate()
triggerPlate:destroy()
end
Do i have to create another hidden plate or something to trigger the removePlate()-function or am i doing something seriously wrong?