setVehicleCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
Line 38: Line 38:


<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on July 4, 2016 - 18:46 (UTC)</dd>
<dd class="notedate">Posted on July 4, 2016 - 18:46 (UTC)</dd>

Revision as of 14:37, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Vehicle in Vehicle Transport

Syntax

Syntax:
Syntax needed
Parameters:
vehicle: Object - vehicle carrying cargo
cargo: Object - cargo to put in vehicle
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
Example 3:
Unload specific loaded vehicle _success = objNull setVehicleCargo offroad;
Example 4:
Unload all vehicles _success = blackfish setVehicleCargo objNull;

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
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"