lockCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Lock all cargo positions of a vehicle or lock by index. This command must be executed where vehicle is [[local]]. This command will remove user get in action (not get out) but will also stop player getting into vehicle via script commands unlike [[lock]] command|DESCRIPTION=
| Lock all cargo positions of a vehicle or lock by index.
This command will remove user "get in" action (not get out) but will also stop player getting into vehicle via script commands (e.g [[moveInCargo]]) unlike [[lock]] command. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''lockCargo''' lock |SYNTAX=
| vehicle [[lockCargo]] lock |SYNTAX=


|p1= vehicle: [[Object]]   |PARAMETER1=  
|p1= vehicle: [[Object]] |PARAMETER1=  


|p2= lock: [[Boolean]]   |PARAMETER2=
|p2= lock: [[Boolean]] |PARAMETER2=


| [[Nothing]] |RETURNVALUE=  
| [[Nothing]] |RETURNVALUE=  


|s2= vehicle '''lockCargo''' [index, lock]  |SYNTAX=
|s2= vehicle [[lockCargo]] [index, lock]  |SYNTAX2=


|p21= vehicle: [[Object]]  |PARAMETER1=  
|p21= vehicle: [[Object]]  |PARAMETER21=


|p22= [index, lock]: [[Array]]  |PARAMETER2=
|p22= [index, lock]: [[Array]]  |PARAMETER22=


|p23= index: [[Number]] |PARAMETER4=
|p23= index: [[Number]] |PARAMETER23=
|p24= lock: [[Boolean]]  |PARAMETER3=  


|r2= [[Nothing]] |RETURNVALUE=
|p24= lock: [[Boolean]]   |PARAMETER24=


|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________


|x1= <code>vehicleName [[lockCargo]] [[true]];</code>|EXAMPLE1=
|x1= <code>vehicleName [[lockCargo]] [[true]];</code> |EXAMPLE1=  
 
|x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code>|EXAMPLE2=


|x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 43: Line 44:


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 22:46, 2 September 2019

Hover & click on the images for description

Description

Description:
Lock all cargo positions of a vehicle or lock by index. This command will remove user "get in" action (not get out) but will also stop player getting into vehicle via script commands (e.g moveInCargo) unlike lock command.
Groups:
Uncategorised

Syntax

Syntax:
vehicle lockCargo lock
Parameters:
vehicle: Object
lock: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
vehicle lockCargo [index, lock]
Parameters:
vehicle: Object
[index, lock]: Array
index: Number
lock: Boolean
Return Value:
Nothing

Examples

Example 1:
vehicleName lockCargo true;
Example 2:
vehicleName lockCargo [0, true];

Additional Information

See also:
locksetVehicleLocklockDriverlockedCargolockTurret

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

Notes

Bottom Section