getVehicleCargo: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") | Lou Montana (talk | contribs)  m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") | ||
| Line 37: | Line 37: | ||
| {{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} | ||
| [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
| {{GameCategory|arma3| | {{GameCategory|arma3|New Scripting Commands}} | ||
Revision as of 23:01, 12 January 2021
Description
- Description:
- Get 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.
- Groups:
- Vehicle in Vehicle Transport
Syntax
- Syntax:
- getVehicleCargo storingVehicle
- Parameters:
- storingVehicle: Object
- Return Value:
- Array - vehicles loaded in storingVehicle, in order of their loading
Examples
- Example 1:
- _vehicleCargo = getVehicleCargo blackfish; // returns [] if empty
- Example 2:
- _vehicleCargo = getVehicleCargo blackfish; // returns [quad_3, quad_1, quad_2] as they were loaded in this order
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
 
	