Guest User

door shitcode

a guest
Apr 5th, 2022
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import time;
  2.  
  3. String d = "Door"; //assuming this is a String
  4. d.Open = false; //no clue why a String would have a boolean corresponding to a door opening but I'll assume it does
  5. while (true)
  6. {
  7. X = 1.chimera; //not sure what the data type for this is but its clearly a chimera so turn that shit off
  8. Signal( “Off” ; X); //signals it to turn off
  9. int User = int(input(1 OR 0)); //Button press? 1 is probably corresponding to being pushed, not sure if OR is needed
  10. if (User == 1) //check if the button is pressed
  11. {
  12. if (d.Open == false)
  13. {
  14. d.Open = true;
  15. print(“Opening”);
  16. }
  17. else
  18. {
  19. d.Open = false;
  20. print(“Closing”);
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment