Skip to content

Commit

Permalink
Sitting - Fix sitting on carried objects (#10318)
Browse files Browse the repository at this point in the history
Co-authored-by: Grim <[email protected]>
  • Loading branch information
PabstMirror and LinkIsGrim authored Sep 17, 2024
1 parent dc36bee commit b662de6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/sitting/functions/fnc_canSit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ params ["_seat", "_player", ["_seatPos", 0]];

// Sitting enabled, not occupied and standing up (or not on a big slope)
XGVAR(enable) &&
{[_player, _seat] call EFUNC(common,canInteractWith)} &&
{isNil {_player getVariable QGVAR(sittingStatus)}} &&
{
private _seatsClaimed = _seat getVariable [QGVAR(seatsClaimed), []];
Expand Down

0 comments on commit b662de6

Please sign in to comment.