Difference between revisions of "lockInventory"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m (Some wiki formatting)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
+
{{RV|type=command
  
|game1= arma3dev |Game name=
+
|game1= arma3
|arg= global |Arguments in MP=
+
|arg= global
  
|eff= local |Effects in MP=
+
|eff= local
|version= 2.01 |Game version=
+
|version1= 2.00
  
|gr1= Unit Inventory |GROUP1=
+
|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. |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 set to [[true]] (locked), the inventory cannot be accessed ''via'' hotkey or action menu.
  
|mp= |Multiplayer Behaviour=
+
|s1= vehicle [[lockInventory]] lock
  
|pr= |Problems=
+
|p1= vehicle: [[Object]]
____________________________________________________________________________________________
 
  
|s1= vehicle [[lockInventory]] lock |Syntax=
+
|p2= lock: [[Boolean]]
  
|p1= vehicle: [[Object]]
+
|r1= [[Nothing]]
|p2= lock: [[Boolean]]
 
  
|r1= [[Nothing]] |Return Value=
+
|x1= <sqf>vehicle player lockInventory true;</sqf>
____________________________________________________________________________________________
 
  
|x1= <code>[[vehicle]] [[player]] [[lockInventory]] [[true]];</code> |Example 1=
+
|x2= <sqf>backpackContainer player lockInventory true;</sqf>
|x2= <code>[[backpackContainer]] [[player]] [[lockInventory]] [[true]];</code> |Example 2=
 
____________________________________________________________________________________________
 
  
|seealso= [[lockedInventory]] |See Also=
+
|seealso= [[lockedInventory]]
 
}}
 
}}
  
<dl class="command_description">
+
{{Note
<!-- BEGIN Note Section -->
+
|user= PierreMGI
 
+
|timestamp= 20201121200000 <!-- dat time -->
<!-- END Note Section -->
+
|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.
</dl>
+
}}
 
 
<h3 style="display:none">Bottom Section</h3>
 

Latest revision as of 12:05, 4 May 2022

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