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 - " +\]" to "]")
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|1.62|Game version=
|version1= 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=
|descr= Check if the vehicle has enabled transporting other vehicles or not.


| [[vehicleCargoEnabled]] vehicle |SYNTAX=
|s1= [[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=
|r1= [[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
<sqf>_canTransportVehicles = vehicleCargoEnabled blackfish; //returns true</sqf>
</code> |EXAMPLE1=
 
| [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[enableVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] |SEEALSO=


|seealso= [[Arma 3: Vehicle in Vehicle Transport| Vehicle in Vehicle Transport]] [[canVehicleCargo]] [[setVehicleCargo]] [[enableVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:15, 8 November 2023

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