Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.45 KB | None | 0 0
  1. waitUntil {!isNull (findDisplay 46)};
  2.  
  3. findDisplay 46 displayAddEventHandler ["keyDown", {
  4.  
  5. _key = _this select 1; // Key Pressed
  6.  
  7. if (_key == 24) then {{
  8.  
  9. if ((_x animationPhase "Door_1_Rot" == 0) OR (_x animationPhase "Door_1_Move" == 0)) then {
  10.  
  11. _x animate ["Door_1_Rot",1];
  12. _x animate ["Door_1_Move",1];
  13.  
  14. } else {
  15.  
  16. _x animate ["Door_1_Rot",0];
  17. _x animate ["Door_1_Move",0];
  18.  
  19. };
  20. } forEach nearestObjects [player,["All"],50];
  21. };
  22.  
  23.  
  24.  
  25.  
  26.  
  27. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement