Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time;
- String d = "Door"; //assuming this is a String
- d.Open = false; //no clue why a String would have a boolean corresponding to a door opening but I'll assume it does
- while (true)
- {
- X = 1.chimera; //not sure what the data type for this is but its clearly a chimera so turn that shit off
- Signal( “Off” ; X); //signals it to turn off
- int User = int(input(1 OR 0)); //Button press? 1 is probably corresponding to being pushed, not sure if OR is needed
- if (User == 1) //check if the button is pressed
- {
- if (d.Open == false)
- {
- d.Open = true;
- print(“Opening”);
- }
- else
- {
- d.Open = false;
- print(“Closing”);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment