Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.19

Description

Description:Deletes the specified magazine from the cargo of a vehicle. Does nothing, if the magazine is not in the vehicle cargo. Magazines are removed in the order of fullest to emptiest.

Syntax

Syntax:vehicle removeMagazineCargo [magazineclass, ammocount]
Parameters:
  • vehicle: Object - Affected vehicle.
  • magazineclass: String - Magazine type, based on its VBS3 class name.
  • ammocount: Number - Number of magazines of the specified type to remove.
Return Value:Nothing

Examples

Examples:
crate removeWeaponCargo ["vbs_mag_B_magpul_pmag_556x45_30rnd_base", 2] // Crates are considered vehicle objects in VBS3

Additional Information

See also: removeWeaponCargo, getWeaponCargo, getMagazineCargo, magazinesEx
Multiplayer:
Problems:

Notes