lockInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page Creation)
 
No edit summary
Line 6: Line 6:
____________________________________________________________________________________________
____________________________________________________________________________________________


|descr= Lock or unlock a vehicle's inventory access. If you set it [[false]] (locked), the inventory won't be accessed via hotkey or action menu. |Description=
|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 you set it [[true]] (locked), the inventory won't be accessed via hotkey or action menu. |Description=


|mp= |Multiplayer Behaviour=
|mp= |Multiplayer Behaviour=
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>vehicle player [[lockInventory]] true</code> |Example 1=
|x1= <code>[[vehicle]] [[player]] [[lockInventory]] [[true]];</code> |Example 1=
|x2= <code>[[backpackContainer]] [[player]] [[lockInventory]] [[true]];</code> |Example 2=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:51, 3 September 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
Hover & click on the images for description

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:
Uncategorised

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

[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | LOCKINVENTORY]][[ Category: arma3dev: Scripting Commands | LOCKINVENTORY]]

Bottom Section