lockInventory: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ") |
Lou Montana (talk | contribs) m (Text replacement - "<dt class="note">([^<>]+) " to "<dt class="note">$1</dt> ") |
||
Line 31: | Line 31: | ||
<!-- BEGIN Note Section --> | <!-- BEGIN Note Section --> | ||
<dd class="notedate">Posted on 21. nov. 2020</dd> | <dd class="notedate">Posted on 21. nov. 2020</dd> | ||
<dt class="note">[[User:PierreMGI|PierreMGI]] | <dt class="note">[[User:PierreMGI|PierreMGI]]</dt> | ||
<dd class="note">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. | <dd class="note">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. | ||
<!-- END Note Section --> | <!-- END Note Section --> | ||
</dl> | </dl> |
Revision as of 01:27, 30 January 2021
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 you set it true (locked), the inventory won't 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:
vehicle player lockInventory true;
- Example 2:
backpackContainer player lockInventory true;
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 21. nov. 2020
- PierreMGI
- 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.