Containers
48 scripting commands. Also as Markdown for agents.
- addBackpackAdds a backpack for a unit. If a unit already has a backpack, the old backpack will be placed on the ground under the unit. Items defined in the…
- addBackpackCargoAdd backpack(s) to the cargo space of vehicle. Classname list of available backpacks is here.
- addBackpackCargoGlobalAdd backpack(s) to the cargo space of vehicle.
- addItemToBackpackCreate new item and store it to soldier's backpack. The item can also be a weapon or a magazine.
- addMagazineCargoAdd magazines to the cargo space of vehicles, which can be taken out by infantry units. Once the magazine cargo space is filled up, any further…
- addMagazineCargoGlobalAdd magazines to the cargo space of vehicles, which can be taken out by infantry units.
- addWeaponCargoAdd weapons to the cargo space of vehicles, which can be taken out by infantry units. Ignores available cargo space.
- addWeaponCargoGlobalAdd weapons to the cargo space of vehicles, which can be taken out by infantry units.
- backpackReturns a class of a backpack.
- backpackCargoGet array with backpacks from ammo box (or any general weapon holder container).
- backpackContainerReturns a cargo container of a unit's backpack.
- backpackItemsGet array with all items (of any kind, even weapons) in backpack of the given unit.
- backpackMagazinesGet array with all magazines from backpack of the given unit.
- backpackSpaceForReturns how much space is in backpack for given weapon or magazine
- canAddItemToBackpackChecks if given object can be stored into soldier's backpack.
- clearAllItemsFromBackpackRemoves all items from backpack of a unit.
- clearBackpackCargoRemoves all backpacks from ammo box (or any general weapon holder container).
- clearBackpackCargoGlobalRemoves all backpacks from the vehicle cargo space; MP-synchronised.
- clearItemCargoRemoves all items from ammo box (or any general weapon holder container).
- clearItemCargoGlobalRemoves all items from ammo box (or any general weapon holder container). It also removes vests and uniforms.
- clearMagazineCargoRemove all magazines from the given vehicle's magazine cargo space.
- clearMagazineCargoGlobalRemoves all magazines from the vehicle cargo space. MP synchronized.
- clearWeaponCargoRemove all weapons from the given vehicle's weapon cargo space.
- clearWeaponCargoGlobalRemoves all weapons from the vehicle cargo space. MP synchronized.
- everyBackpackReturns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground.
- firstBackpackReturns the first stored backpack.
- forceAddUniformCreate a new uniform and hard link it into slot (without any restrictions).
- getBackpackCargoReturns all backpack types and count from the cargo space.
- getMagazineCargoReturns all magazines types and count from the cargo space
- getWeaponCargoReturns all weapons types and count from the cargo space
- loadBackpackReturns current percentage of mass from items stored in a backpack relative to the maximum capacity of the backpack.
- magazineCargoGet array with magazines from ammo box (or any general weapon holder container).
- removeAllItemsWithMagazinesRemoves all itemsWithMagazines from the uniform, vest and backpack. Command essentially clears all unit's containers.
- removeBackpackRemoves unit's backpack
- removeItemFromBackpackRemoves item from soldier's backpack.
- removeItemFromUniformRemoves item from soldier's uniform. Can be used with magazines and weapons too.
- removeItemFromVestRemoves item from soldier's vest.
- removeUniformRemoves uniform from unit.
- removeVestRemoves vest from unit.
- uniformReturns name of uniform.
- uniformContainerReturns a cargo container of a unit's uniform.
- uniformMagazinesGet array with all magazines from uniform of the given unit.
- unitBackpackReturns unit's backpack
- vestnameof vest.
- vestContainerReturns a cargo container of a unit's vest.
- weaponAccessoriesCargoReturns array with all items assigned to the given weapon in given cargo container.
- weaponCargoGet array with weapons from ammo box (or any general weapon holder container).
- weaponsItemsCargoReturns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in weaponsItems format.