lockCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Comments" to "|Comments=") |
Lou Montana (talk | contribs) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Lock all cargo positions of a vehicle or lock by index. | | 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 | | vehicle [[lockCargo]] lock |SYNTAX= | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] |PARAMETER1= | ||
|p2= lock: [[Boolean]] | |p2= lock: [[Boolean]] |PARAMETER2= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|s2= vehicle | |s2= vehicle [[lockCargo]] [index, lock] |SYNTAX2= | ||
|p21= vehicle: [[Object]] | | |p21= vehicle: [[Object]] |PARAMETER21= | ||
|p22= [index, lock]: [[Array]] | | |p22= [index, lock]: [[Array]] |PARAMETER22= | ||
|p23= index: [[Number]] | | |p23= index: [[Number]] |PARAMETER23= | ||
| | |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= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 43: | Line 44: | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 22:46, 2 September 2019
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
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