Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory - Disable for CAManBase objects #697

Merged
merged 1 commit into from
Dec 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion addons/context_actions/functions/fnc_canEditInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@

params ["_entity"];

_entity isEqualType objNull && {alive _entity} && {maxLoad _entity > 0}
_entity isEqualType objNull
&& {alive _entity}
&& {maxLoad _entity > 0}
&& {!(_entity isKindOf "CAManBase")}
2 changes: 1 addition & 1 deletion addons/inventory/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PREP_RECOMPILE_END;
[_entity] call FUNC(configure);
},
{
alive _entity && {maxLoad _entity > 0}
alive _entity && {maxLoad _entity > 0} && {!(_entity isKindOf "CAManBase")}
}
] call EFUNC(attributes,addButton);

Expand Down