Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !(alive player) exitWith {};
- private _checkLock = 0;
- private _door = [objNull, 0];
- _checkLock = _door getVariable [format ["bis_disabled_%1", _door], 0];
- if (cursorTarget isKindOf "house" && _checkLock == 1 && !isNull cursorTarget && player distance _door <= 1) then { //&& [cursorTarget] call BIS_fnc_isBuildingEnterable;
- _door setVariable [format ["bis_disabled_%1", _door], 0, true];
- player playAnimation kick;
- [_door] call BIS_fnc_DoorOpen;
- };
- else {
- exitWith {hint "Door is unlocked."};
- };
Add Comment
Please, Sign In to add comment