vehicleCargoEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - " +\]" to "]")
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|1.62|= Game version
|version1= 1.62
____________________________________________________________________________________________


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


| [[vehicleCargoEnabled]] vehicle |SYNTAX=
|descr= Check if the vehicle has enabled transporting other vehicles or not.


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


| [[Boolean]] - returns true if the vehicle has enabled transporting other vehicles, and false if the vehicle has not enabled transporting other vehicles |RETURNVALUE=
|p1= vehicle: [[Object]]
____________________________________________________________________________________________
 
|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=
____________________________________________________________________________________________
 
|mp= - |= Multiplayer Behaviour
 
| [[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]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[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