enableVehicleCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3
|1.62|Game version=
|1.62


|gr1= Vehicle in Vehicle Transport |GROUP1=
|gr1= Vehicle in Vehicle Transport


| Enable/disable option to transport other vehicles (if configured) or be transported. |DESCRIPTION=
| Enable/disable option to transport other vehicles (if configured) or be transported.


| vehicle [[enableVehicleCargo]] enable |SYNTAX=
| vehicle [[enableVehicleCargo]] enable


|p1= vehicle: [[Object]] |PARAMETER1=
|p1= vehicle: [[Object]]


|p2=  enable: [[Boolean]] |PARAMETER2=
|p2=  enable: [[Boolean]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1=
|x1=
<code>vehicle [[enableVehicleCargo]] [[true]];
<code>vehicle [[enableVehicleCargo]] [[true]];
</code> |EXAMPLE1=
</code>


| [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] [[vehicleCargoEnabled]] |SEEALSO=
| [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] [[vehicleCargoEnabled]]


}}
}}

Revision as of 00:36, 18 January 2021

Hover & click on the images for description

Description

Description:
Enable/disable option to transport other vehicles (if configured) or be transported.
Groups:
Vehicle in Vehicle Transport

Syntax

Syntax:
vehicle enableVehicleCargo enable
Parameters:
vehicle: Object
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
vehicle enableVehicleCargo true;

Additional Information

See also:
Vehicle in Vehicle Transport canVehicleCargo setVehicleCargo getVehicleCargo 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

Bottom Section

Posted on June 20, 2016 - 06:11 (UTC)
Pennyworth
Setting enableVehicleCargo to true does not mean a vehicle can now load vehicles as cargo. They are still required to be correctly setup as shown on the Vehicle in Vehicle Transport page.