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