-
Notifications
You must be signed in to change notification settings - Fork 10
Functions
-
zade_boc_fnc_actionOnBack
Lets given unit perform the 'onBack' action. -
zade_boc_fnc_actionOnChest
Lets given unit perform the 'onChest' action. -
zade_boc_fnc_actionSwap
Lets given unit perform the 'swap' action. -
zade_boc_fnc_addChestpack
Adds a chestpack to a unit. If a unit already has one, the old chestpack will be ignored and will be deleted completely. -
zade_boc_fnc_addItemToChestpack
Creates a new item and stores it in the soldier's chestpack. The item can also be a weapon or a magazine. The item(s) won't be added, if adding them would cause an overflow of the backpack. -
zade_boc_fnc_addMagToChestpack
Creates new magazine and stores it in the soldier's chestpack. Only magazines are supported. The purpose of this function is to ensure that magazines with a specified ammo count can be added. If you want to add a/multiple full magazine(s) you may want to use zade_boc_addItemToChestpack instead. -
zade_boc_fnc_canAddItemToChestpack
Checks if given item can be stored into soldier's chestpack. -
zade_boc_fnc_chestpack
Returns the classname of a unit's chestpack. -
zade_boc_fnc_chestpackContainer
Returns the cargo container of a unit's chestpack. Note that this is only a prop and does not contain any items. Items which were added with vanilla commands like 'addWeaponCargo' etc. will be ignored. You have to use the provided functions instead. -
zade_boc_fnc_chestpackItems
Returns array with all items (of any kind, even weapons) in chestpack of the given unit. -
zade_boc_fnc_chestpackMagazines
Returns array of all magazines from chestpack of the given unit. -
zade_boc_fnc_clearAllItemsFromChestpack
Removes all items (includes weapons and magazines) from a unit's chestpack. -
zade_boc_fnc_loadChestpack
Returns current sum of mass from items stored in a chestpack. -
zade_boc_fnc_removeChestpack
Removes unit's chestpack. -
zade_boc_fnc_removeItemFromChestpack
Removes item from unit's chestpack. -
zade_boc_fnc_removeMagFromChestpack
Removes magazine from unit's chestpack. The purpose of this function is to ensure that magazines with a specified ammo count can be removed. If you want to remove a magazine with just any amount of ammo you may want to use zade_boc_fnc_removeItemFromChestpack instead.
- fn_actionOnBack
- fn_actionOnChest
- fn_actionSwap
- fn_addChestpack
- fn_addItemToChestpack
- fn_addMagToChestpack
- fn_canAddItemToChestpack
- fn_chestpack
- fn_chestpackContainer
- fn_chestpackItems
- fn_chestpackMagazines
- fn_clearAllItemsFromChestpack
- fn_loadChestpack
- fn_removeChestpack
- fn_removeItemFromChestpack
- fn_removeMagFromChestpack