vehicleCargoEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added warning about command not being final to vehicleCargoEnabled)
m (Text replacement - " +\]" to "]")
 
(30 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________


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


| Check if the vehicle has enabled transporting other vehicles or not.
|gr1= Vehicle in Vehicle Transport
{{warning|This command is not final and might be changed in the near future.}} |= Description
____________________________________________________________________________________________


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


|p1= vehicle: [[Object]] |= Parameter 1
|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 |= Return value
|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> |= Example 1
____________________________________________________________________________________________
 
|mp= - |= Multiplayer Behaviour
 
| [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[enableVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] |= See Also


|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