getVehicleCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= ____________________________________________________________________________________________ | arma3dev |= Game name |1.63|= Game version ________________________...")
 
(Added warning about command not being final to getVehicleCargo)
Line 6: Line 6:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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. |= 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.  
{{warning|This command is not final and might be changed in the near future.}} |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 07:49, 20 June 2016

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.63|1.63]]
Hover & click on the images for description

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.
This command is not final and might be changed in the near future.
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

[[Category:Introduced with arma3dev version 1.63]][[ Category: arma3dev: New Scripting Commands | GETVEHICLECARGO]][[ Category: arma3dev: Scripting Commands | GETVEHICLECARGO]]

Bottom Section