lockInventory: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|game1= arma3 | |game1= arma3 | ||
|arg= global |Arguments in MP= | |arg= global |Arguments in MP= | ||
|eff= local |Effects in MP= | |eff= local |Effects in MP= | ||
|version= 2.00 | |version= 2.00 | ||
|gr1= Unit Inventory | |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 you set it [[true]] (locked), the inventory won't be accessed via hotkey or action menu. | |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. | ||
|mp= |Multiplayer Behaviour= | |mp= |Multiplayer Behaviour= | ||
Line 15: | Line 15: | ||
|pr= |Problems= | |pr= |Problems= | ||
|s1= vehicle [[lockInventory]] lock | |s1= vehicle [[lockInventory]] lock | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= lock: [[Boolean]] | |p2= lock: [[Boolean]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>[[vehicle]] [[player]] [[lockInventory]] [[true]];</code> | |x1= <code>[[vehicle]] [[player]] [[lockInventory]] [[true]];</code> | ||
|x2= <code>[[backpackContainer]] [[player]] [[lockInventory]] [[true]];</code> | |x2= <code>[[backpackContainer]] [[player]] [[lockInventory]] [[true]];</code> | ||
|seealso= [[lockedInventory]] | |seealso= [[lockedInventory]] | ||
}} | }} | ||
Revision as of 01:01, 18 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.