enableVehicleCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added warning about command not being final to enableVehicleCargo)
m (Text replacement - " +\]" to "]")
 
(38 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
____________________________________________________________________________________________


| Enable/disable option to transport other vehicles (if configured) or be transported.
|gr1= Vehicle in Vehicle Transport
{{warning|This command is not final and might be changed in the near future.}} |= Description
____________________________________________________________________________________________


| vehicle enableVehicleCargo true |= Syntax
|descr= Enable/disable option to transport other vehicles (if configured) or be transported.


|p1= vehicle: [[Object]] |= Parameter 1
|s1= vehicle [[enableVehicleCargo]] enable


|p2= true: [[Boolean]] |= Parameter 2
|p1= vehicle: [[Object]]


| [[Nothing]] |= Return value
|p2= enable: [[Boolean]]
____________________________________________________________________________________________
 
|r1= [[Nothing]]


|x1=
|x1=
<code>vehicle enableVehicleCargo true;
<sqf>vehicle enableVehicleCargo true;</sqf>
</code> |= Example 1
____________________________________________________________________________________________
 
|mp= - |= Multiplayer Behaviour
 
| [[Arma_3_Vehicle_in_Vehicle_Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[setVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] [[vehicleCargoEnabled]] |= See Also


|seealso= [[Arma 3: Vehicle in Vehicle Transport| Vehicle in Vehicle Transport]] [[canVehicleCargo]] [[setVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] [[vehicleCargoEnabled]]
}}
}}


<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<dl class="command_description">
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2016-06-20 - 06:11 (UTC)</dd>
<dd class="notedate">Posted on June 20, 2016 - 06:11 (UTC)</dd>
<dt class="note">[[User:Pennyworth|Pennyworth]]</dt>
<dt class="note">[[User:Pennyworth|Pennyworth]]</dt>
<dd class="note">
<dd class="note">
Setting [[enableVehicleCargo]] to true does not mean a vehicle can now load vehicles as cargo. They are still required to be correctly setup as shown on the [https://community.bistudio.com/wiki/Arma_3_Vehicle_in_Vehicle_Transport Vehicle in Vehicle Transport] page.
Setting [[enableVehicleCargo]] to true does not mean a vehicle can now load vehicles as cargo. They are still required to be correctly setup as shown on the [[Arma 3: Vehicle in Vehicle Transport|Vehicle in Vehicle Transport]] page.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 18:15, 8 November 2023

Hover & click on the images for description

Description

Description:
Enable/disable option to transport other vehicles (if configured) or be transported.
Groups:
Vehicle in Vehicle Transport

Syntax

Syntax:
vehicle enableVehicleCargo enable
Parameters:
vehicle: Object
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
vehicle enableVehicleCargo true;

Additional Information

See also:
Vehicle in Vehicle Transport canVehicleCargo setVehicleCargo getVehicleCargo isVehicleCargo vehicleCargoEnabled

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


Posted on 2016-06-20 - 06:11 (UTC)
Pennyworth
Setting enableVehicleCargo to true does not mean a vehicle can now load vehicles as cargo. They are still required to be correctly setup as shown on the Vehicle in Vehicle Transport page.