vehicleCargoEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 6: Line 5:


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


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


| [[vehicleCargoEnabled]] vehicle |SYNTAX=
| [[vehicleCargoEnabled]] vehicle |SYNTAX=
Line 16: Line 13:


| [[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 |RETURNVALUE=
____________________________________________________________________________________________


|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> |EXAMPLE1=
____________________________________________________________________________________________


| [[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]] |SEEALSO=

Revision as of 04:20, 17 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

Bottom Section