lockInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.00
|arg= global
|arg= global


|eff= local
|eff= local
|version1= 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 set to [[true]] (locked), the inventory cannot be accessed ''via'' hotkey or action menu.


|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= <sqf>vehicle player lockInventory true;</sqf>
|x2= <code>[[backpackContainer]] [[player]] [[lockInventory]] [[true]];</code>
 
|x2= <sqf>backpackContainer player lockInventory true;</sqf>


|seealso= [[lockedInventory]]
|seealso= [[lockedInventory]]
}}
}}


<dl class="command_description">
{{Note
 
|user= PierreMGI
<dt></dt>
|timestamp= 20201121200000 <!-- dat time -->
<dd class="notedate">Posted on 21. nov. 2020</dd>
|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.
<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>

Latest revision as of 01:17, 28 September 2023

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 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:
vehicle player lockInventory true;
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
PierreMGI - c
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.