lockCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(added: example with cargo index, index parameter and See Also)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''lockCargo''' lock |= Syntax
| vehicle '''lockCargo''' lock or vehicle '''lockCargo''' [index, lock]  |= Syntax


|p1= vehicle: [[Object]] -  |= PARAMETER1  
|p1= vehicle: [[Object]] -  |= PARAMETER1  
Line 16: Line 16:
|p2= lock: [[Boolean]] -  |= PARAMETER2  
|p2= lock: [[Boolean]] -  |= PARAMETER2  


|p3= |= PARAMETER3  
|p3= index: [[Number]] |= PARAMETER3  


| Nothing |= RETURNVALUE  
| Nothing |= RETURNVALUE  




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


____________________________________________________________________________________________
____________________________________________________________________________________________


|  |= SEEALSO  
| [[lockedCargo]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 14:39, 28 August 2009

Hover & click on the images for description

Description

Description:
Lock the all cargo positions of the vehicle.
Groups:
Uncategorised

Syntax

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

Examples

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

Additional Information

See also:
lockedCargo

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