- You can't fully disable inventory access with InventoryOpened because you still get "Take" and "Rearm" actions
- "Take" and "Rearm" actions suck and only cause problems when you misclick on them instead of selecting useful actions.
- Need scripting command to disable "Take" and "Rearm" for certain vehicle or for everything at once.
I suggest to introduce scripting command or approach to get rid of "Take ..." and "Rearm" actions. Main reason for this is ability to prevent player from accessing inventory of certain vehicle that they're not allowed to take weapons or equipment from by mission design. At the moment this can be done through "InventoryOpened" event handler (https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#InventoryOpened), but it doesn't cover "Take" and "Rearm" actions and players will still be able to take stuff from the container. I suggest to implement it in form of local flag on container defining if container should show you "Take" and "Rearm" actions. Suggested syntax:
<vehicle> hideTakeActions <bool>;
Additionally I'd like a way to disable all these actions all together for everything because these commands seriously clutter action menu and you can make a mess in your inventory after a single misclick when you actually wanted "Get in" or "Inventory" action but instead you switched your favorite weapon with something else and need to go through process of re-equiping yourself after a single misclick which usually happens in worst possible moments when you need to quickly get into vehicle and drive off. Suggested syntax, similar to previous suggestion but unary command: