lockCargo: Difference between revisions
Jump to navigation
Jump to search
(populated with empty template) |
m (template:command argument fix) |
||
(16 intermediate revisions by 6 users not shown) | |||
Line 5: | Line 5: | ||
|1.00|= Game version | |1.00|= Game version | ||
|arg= local |= Arguments in MP | |||
|eff= global |= Effects in MP | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ( | | 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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ''' | | vehicle '''lockCargo''' lock |SYNTAX= | ||
|p1= vehicle: [[Object]] |PARAMETER1= | |||
|p2= lock: [[Boolean]] |PARAMETER2= | |||
| [[Nothing]] |RETURNVALUE= | |||
|s2= vehicle '''lockCargo''' [index, lock] |SYNTAX= | |||
|p21= vehicle: [[Object]] |PARAMETER1= | |||
| | |p22= [index, lock]: [[Array]] |PARAMETER2= | ||
| | |p23= index: [[Number]] |PARAMETER4= | ||
|p24= lock: [[Boolean]] |PARAMETER3= | |||
| | |r2= [[Nothing]] |RETURNVALUE= | ||
|x1= <code>vehicleName [[lockCargo]] [[true]];</code>|EXAMPLE1= | |||
| | |x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= | | [[lock]], [[setVehicleLock]], [[lockDriver]], [[lockedCargo]], [[lockTurret]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} | ||
Line 41: | Line 56: | ||
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 15:43, 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