So far
Code: Select all
function SetPressurePlateTarget()
if NorthLever:getLeverState()=="deactivated" and
SouthLever:getLeverState()=="deactivated" then
VariablePlate1:addConnector("activate","NorthwestDoor","toggle")
else
if NorthLever:getLeverState()=="activated" and
SouthLever:getLeverState()=="activated" then
VariablePlate1:addConnector("activate","SoutheastDoor","toggle")
else
if NorthLever:getLeverState()=="deactivated" and
SouthLever:getLeverState()=="activated" then
VariablePlate1:addConnector("activate","NortheastDoor","toggle")
else
if NorthLever:getLeverState()=="activated" and
SouthLever:getLeverState()=="deactivated" then
VariablePlate1:addConnector("activate","SouthwestDoor","toggle")
end
end
end
end
end
But the problem is the connectors just stack instead of replacing the previous one.
Any suggestions?
Thanks in advance.