vehicleCargoEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Appropriate categories go here -->" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
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


| Check if the vehicle has enabled transporting other vehicles or not. |DESCRIPTION=
| Check if the vehicle has enabled transporting other vehicles or not.


| [[vehicleCargoEnabled]] vehicle |SYNTAX=
| [[vehicleCargoEnabled]] vehicle


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


| [[Boolean]] - returns true if the vehicle has enabled transporting other vehicles, and false if the vehicle has not enabled transporting other vehicles |RETURNVALUE=
| [[Boolean]] - returns true if the vehicle has enabled transporting other vehicles, and false if the vehicle has not enabled transporting other vehicles


|x1= Blackfish (Vehicle Transport) with given variable name blackfish
|x1= Blackfish (Vehicle Transport) with given variable name blackfish
<code>_canTransportVehicles = [[vehicleCargoEnabled]] blackfish; //returns true
<code>_canTransportVehicles = [[vehicleCargoEnabled]] blackfish; //returns true
</code> |EXAMPLE1=
</code>


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


}}
}}

Revision as of 11:43, 18 January 2021

Hover & click on the images for description

Description

Description:
Check if the vehicle has enabled transporting other vehicles or not.
Groups:
Vehicle in Vehicle Transport

Syntax

Syntax:
vehicleCargoEnabled vehicle
Parameters:
vehicle: Object
Return Value:
Boolean - returns true if the vehicle has enabled transporting other vehicles, and false if the vehicle has not enabled transporting other vehicles

Examples

Example 1:
Blackfish (Vehicle Transport) with given variable name blackfish _canTransportVehicles = vehicleCargoEnabled blackfish; //returns true

Additional Information

See also:
Vehicle in Vehicle Transport canVehicleCargo setVehicleCargo enableVehicleCargo getVehicleCargo isVehicleCargo

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