setVehicleCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Arma( |_)3( |_)Vehicle( |_)in( |_)Vehicle( |_)Transport" to "[[Arma 3: Vehicle in Vehicle Transport") |
||
Line 32: | Line 32: | ||
<sqf>private _success = blackfish setVehicleCargo objNull;</sqf> | <sqf>private _success = blackfish setVehicleCargo objNull;</sqf> | ||
|seealso= [[ | |seealso= [[Arma 3: Vehicle in Vehicle Transport| Vehicle in Vehicle Transport ]] [[canVehicleCargo]] [[enableVehicleCargo]] [[getVehicleCargo]] [[isVehicleCargo]] [[vehicleCargoEnabled]] | ||
}} | }} | ||
Revision as of 13:54, 14 August 2022
Description
- Description:
- Load cargo vehicle inside vehicle if possible, returns bool based on whether the vehicle was able to be loaded. Can also be used to unload a specific loaded vehicle or all loaded vehicles.
- Groups:
- Vehicle in Vehicle Transport
Syntax
- Syntax:
- vehicle setVehicleCargo cargo
- Parameters:
- vehicle: Object - vehicle for carrying cargo, objNull to unload specific loaded cargo
- cargo: Object - cargo to put/loaded in vehicle, objNull to unload all loaded cargo
- Return Value:
- Boolean - whether or not operation was a success
Examples
- Example 1:
- Blackfish with no vehicle cargo loaded
- Example 2:
- Blackfish with full cargo already loaded
- Example 3:
- Unload specific loaded vehicle (will paradrop if dropped from high altitude)
- Example 4:
- Unload all vehicles (will paradrop if dropped from high altitude)
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