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
- if (_key == 24) then {{
- if ((_x animationPhase "Door_1_Rot" == 0) OR (_x animationPhase "Door_1_Move" == 0)) then {
- _x animate ["Door_1_Rot",1];
- _x animate ["Door_1_Move",1];
- } else {
- _x animate ["Door_1_Rot",0];
- _x animate ["Door_1_Move",0];
- };
- } forEach nearestObjects [player,["All"],50];
- };
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement