vehicleCargoEnabled: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<!-- Appropriate categories go here -->" to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|1.62 | |1.62 | ||
|gr1= Vehicle in Vehicle Transport | |gr1= Vehicle in Vehicle Transport | ||
| Check if the vehicle has enabled transporting other vehicles or not. | | Check if the vehicle has enabled transporting other vehicles or not. | ||
| [[vehicleCargoEnabled]] vehicle | | [[vehicleCargoEnabled]] vehicle | ||
|p1= vehicle: [[Object]] | |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 | | [[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> | </code> | ||
| [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[enableVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] | | [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[enableVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] | ||
}} | }} |
Revision as of 11:43, 18 January 2021
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