lockCargo: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (template:command argument fix) |
||
Line 16: | Line 16: | ||
| vehicle '''lockCargo''' lock |= Syntax | | vehicle '''lockCargo''' lock |= Syntax | ||
|p1= vehicle: [[Object]] |= | |p1= vehicle: [[Object]] |PARAMETER1= | ||
|p2= lock: [[Boolean]] |= | |p2= lock: [[Boolean]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|s2= vehicle '''lockCargo''' [index, lock] |= Syntax | |s2= vehicle '''lockCargo''' [index, lock] |= Syntax | ||
|p21= vehicle: [[Object]] |= | |p21= vehicle: [[Object]] |PARAMETER1= | ||
|p22= [index, lock]: [[Array]] |= | |p22= [index, lock]: [[Array]] |PARAMETER2= | ||
|p23= index: [[Number]] |= | |p23= index: [[Number]] |PARAMETER4= | ||
|p24= lock: [[Boolean]] |= | |p24= lock: [[Boolean]] |PARAMETER3= | ||
|r2= [[Nothing]] |= | |r2= [[Nothing]] |RETURNVALUE= | ||
|x1= <code>vehicleName [[lockCargo]] [[true]];</code>|= | |x1= <code>vehicleName [[lockCargo]] [[true]];</code>|EXAMPLE1= | ||
|x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code>|= | |x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[lock]], [[setVehicleLock]], [[lockDriver]], [[lockedCargo]], [[lockTurret]] |= | | [[lock]], [[setVehicleLock]], [[lockDriver]], [[lockedCargo]], [[lockTurret]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:35, 7 April 2019
Description
- Description:
- 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
- Groups:
- Uncategorised
Syntax
Alternative Syntax
- Syntax:
- vehicle lockCargo [index, lock]
- Parameters:
- vehicle: Object
- [index, lock]: Array
- index: Number
- lock: Boolean
- Return Value:
- Nothing
Examples
Additional Information
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