Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- waitUntil {!isNull (findDisplay 46)};
- findDisplay 46 displayAddEventHandler ["keyDown", {
- _key = _this select 1; // Key Pressed
- // 24 = O for Oscar
- if (_key == 24) then {{
- if ((_x animationPhase "Door_1_Move" == 0) OR (_x animationPhase "Door_1_Rot" == 0)) then {
- _x animate ["Door_1_Move",1]; // Open gate
- _x animate ["Door_1_Rot",1]; // Open Bar Gate
- } else {
- hint "loser";
- _x animate ["Door_1_Move",0]; // 0 = Closed
- };
- } forEach nearestObjects [player,["All"],50];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement