boolean variable question ( SOLVED )
Posted: Sun Jul 06, 2014 9:37 pm
Hi, I have look around the forum but canot find the answer to this.
What I wanna do is close a door when you step on a hidden pressure plate but only if you have stepped on a previous pressure plate before.
This part works fine, the problem is that I have a button that would put the variable to false and open the door so that it could be done again.
But after i press the button it seems the variable plate01 become false but will never become true again.
The door does not close after I press the button and stepped on those 2 plate.
Thank you for your help.
function plate01()
plate01 = true
end
function door01()
if plate01 == true then
prison_door_portcullis_67:close()
end
end
function resetlabyrinth()
plate01 = false
end
What I wanna do is close a door when you step on a hidden pressure plate but only if you have stepped on a previous pressure plate before.
This part works fine, the problem is that I have a button that would put the variable to false and open the door so that it could be done again.
But after i press the button it seems the variable plate01 become false but will never become true again.
The door does not close after I press the button and stepped on those 2 plate.
Thank you for your help.
function plate01()
plate01 = true
end
function door01()
if plate01 == true then
prison_door_portcullis_67:close()
end
end
function resetlabyrinth()
plate01 = false
end