Difference between revisions of "lockInventory"
Jump to navigation
Jump to search
killzone_kid (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{RV|type=command |
− | |game1= | + | |game1= arma3 |
+ | |arg= global | ||
− | | | + | |eff= local |
− | + | |version1= 2.00 | |
− | | | + | |gr1= Unit Inventory |
− | | | + | |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. | ||
+ | If set to [[true]] (locked), the inventory cannot be accessed ''via'' hotkey or action menu. | ||
− | | | + | |s1= vehicle [[lockInventory]] lock |
− | |||
− | | | + | |p1= vehicle: [[Object]] |
− | |||
|p2= lock: [[Boolean]] | |p2= lock: [[Boolean]] | ||
− | |r1= [[Nothing]] | | + | |r1= [[Nothing]] |
− | + | ||
+ | |x1= <sqf>vehicle player lockInventory true;</sqf> | ||
− | + | |x2= <sqf>backpackContainer player lockInventory true;</sqf> | |
− | |x2= < | ||
− | |||
− | |seealso= [[lockedInventory]] | + | |seealso= [[lockedInventory]] |
}} | }} | ||
− | + | {{Note | |
− | + | |user= PierreMGI | |
− | + | |timestamp= 20201121200000 <!-- dat time --> | |
− | <!-- | + | |text= 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. |
− | + | }} | |
− | |||
− |
Revision as of 13:05, 4 May 2022
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.