getVehicleCargo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (format) |
||
Line 17: | Line 17: | ||
|x1= Blackfish with no cargo vehicles | |x1= Blackfish with no cargo vehicles | ||
<code>_vehicleCargo = getVehicleCargo blackfish; //returns [] | <code>_vehicleCargo = [[getVehicleCargo]] blackfish; //returns [] | ||
</code> |= Example 1 | </code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x2= Blackfish with cargo vehicles loaded in the order quad_3, quad_1, quad_2 | |x2= Blackfish with cargo vehicles loaded in the order quad_3, quad_1, quad_2 | ||
<code>_vehicleCargo = getVehicleCargo blackfish; //returns [quad_3, quad_1, quad_2] | <code>_vehicleCargo = [[getVehicleCargo]] blackfish; //returns [quad_3, quad_1, quad_2] | ||
</code> |= Example 2 | </code> |= Example 2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 04:57, 20 September 2016
Description
- Description:
- Gets a list of vehicles loaded as cargo inside this vehicle. The returned array is in the order the cargo vehicles were added to containing vehicle.
- Multiplayer:
- -
- Groups:
- Uncategorised
Syntax
- Syntax:
- getVehicleCargo vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array - if there are no vehicles loaded as cargo an empty array ([]) will be returned, otherwise an array of objects will be returned representing the cargo vehicles
Examples
- Example 1:
- Blackfish with no cargo vehicles
_vehicleCargo = getVehicleCargo blackfish; //returns []
- Example 2:
- Blackfish with cargo vehicles loaded in the order quad_3, quad_1, quad_2
_vehicleCargo = getVehicleCargo blackfish; //returns [quad_3, quad_1, quad_2]
Additional Information
- See also:
- Vehicle in Vehicle Transport canVehicleCargo setVehicleCargo enableVehicleCargo isVehicleCargo vehicleCargoEnabled
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