lockInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|arg= global


|version= 2.01 |Game version=
|eff= local
____________________________________________________________________________________________
|version1= 2.00


|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=
|gr1= Unit Inventory


|mp= |Multiplayer Behaviour=
|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.


|pr= |Problems=
|s1= vehicle [[lockInventory]] lock
____________________________________________________________________________________________
 
|s1= vehicle [[lockInventory]] lock |Syntax=


|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]
|p2= lock: [[Boolean]]
|p2= lock: [[Boolean]]


|r1= [[Nothing]] |Return Value=
|r1= [[Nothing]]
____________________________________________________________________________________________


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


|seealso= [[lockedInventory]] |See Also=
|seealso= [[lockedInventory]]
}}
}}


<dl class="command_description">
<dl class="command_description">
<!-- BEGIN Note Section -->


<!-- END Note Section -->
<dt></dt>
<dd class="notedate">Posted on 21. nov. 2020</dd>
<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.
 
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>

Revision as of 14:34, 12 June 2021

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