setVehicleCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 39: Line 39:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on July 4, 2016 - 18:46 (UTC)</dd>
<dt class="note">[[User:ImperialAlex|ImperialAlex]]</dt>
<dd class="note">
From [https://forums.bistudio.com/topic/191678-vehicle-in-vehicle-transport-feedback/page-5#entry3056397 biforums]:
"objnull setVehicleCargo cargo vehicle - will unload specific loaded vehicle" and "transporting vehicle setVehicleCargo objnul - unload all vehicles"
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 20:46, 4 July 2016

Hover & click on the images for description

Description

Description:
Load cargo vehicle inside vehicle if possible, returns bool based on whether the vehicle was able to be loaded.
Multiplayer:
-
Groups:
Uncategorised

Syntax

Syntax:
vehicle setVehicleCargo cargo
Parameters:
vehicle: Object
cargo: Object
Return Value:
Boolean - whether the vehicle was able to be loaded

Examples

Example 1:
Blackfish with no vehicle cargo loaded _success = blackfish setVehicleCargo offroad; //true
Example 2:
Blackfish with full cargo already loaded _success = blackfish setVehicleCargo offroad; //false

Additional Information

See also:
Vehicle in Vehicle Transport canVehicleCargo enableVehicleCargo 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

Bottom Section

Posted on July 4, 2016 - 18:46 (UTC)
ImperialAlex
From biforums: "objnull setVehicleCargo cargo vehicle - will unload specific loaded vehicle" and "transporting vehicle setVehicleCargo objnul - unload all vehicles"