lockInventory: Difference between revisions
Jump to navigation
Jump to search
BrettMayson (talk | contribs) mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - " ''via'' " to " via ") |
||
Line 12: | Line 12: | ||
|descr= Lock or unlock a vehicle's inventory access. | |descr= Lock or unlock a vehicle's inventory access. | ||
This command can also lock backpack a unit is wearing to prevent access by a third party. | This command can also lock backpack a unit is wearing to prevent access by a third party. | ||
If set to [[true]] (locked), the inventory cannot be accessed | If set to [[true]] (locked), the inventory cannot be accessed via hotkey or action menu. | ||
|s1= vehicle [[lockInventory]] lock | |s1= vehicle [[lockInventory]] lock |
Latest revision as of 12:44, 21 February 2025
Description
- Description:
- Lock or unlock a vehicle's inventory access. This command can also lock backpack a unit is wearing to prevent access by a third party. If set to true (locked), the inventory cannot be accessed via hotkey or action menu.
- Groups:
- Unit Inventory
Syntax
- Syntax:
- vehicle lockInventory lock
- Parameters:
- vehicle: Object
- lock: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- lockedInventory
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on Nov 21, 2020 - 20:00 (UTC)
- This command works only on alive unit. No matter you run it before or after death, on due backpackContainer unit, the backpack will be accessible on corpse.