{ if ( typeOf _x isEqualTo "Land_BarGate_F") then { if (_x animationPhase "Door_1_rot" isEqualTo 1) then { _x animate ["Door_1_rot", 0]; } else { _x animate ["Door_1_rot", 1]; }; }; if ( typeOf _x isEqualTo "Land_Concretewall_01_I_gate_F") then { if (_x animationPhase "Door_1_move" isEqualTo 1) then { _x animate ["Door_1_move", 0]; } else { _x animate ["Door_1_move", 1]; }; }; } forEach (nearestObjects [player, ["Land_BarGate_F","Land_Concretewall_01_I_gate_F"], 15]); //15 bedeutet ab einer nähe von 25 Metern zur Schranke, kann beliebig geändert werden