lockCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|arg= local | |arg= local | ||
|eff= global | |eff= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| 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. | 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. | ||
| vehicle [[lockCargo]] lock | | vehicle [[lockCargo]] lock | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= lock: [[Boolean]] | |p2= lock: [[Boolean]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|s2= vehicle [[lockCargo]] [index, lock] | |s2= vehicle [[lockCargo]] [index, lock] | ||
|p21= vehicle: [[Object]] |PARAMETER21= | |p21= vehicle: [[Object]] |PARAMETER21= | ||
Line 32: | Line 32: | ||
|p24= lock: [[Boolean]] |PARAMETER24= | |p24= lock: [[Boolean]] |PARAMETER24= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>vehicleName [[lockCargo]] [[true]];</code> | |x1= <code>vehicleName [[lockCargo]] [[true]];</code> | ||
|x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code> | |x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code> | ||
| [[lock]], [[setVehicleLock]], [[lockDriver]], [[lockedCargo]], [[lockTurret]] | | [[lock]], [[setVehicleLock]], [[lockDriver]], [[lockedCargo]], [[lockTurret]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:05, 18 January 2021
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:
- Object Manipulation
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