-
Notifications
You must be signed in to change notification settings - Fork 5
Transitioning from zade_boc to bocr
This page is primarily dedicated to users of the API and functions built into zade_boc.
The overall workflow of the project is the same, minus the naming change and some necessary changes to parameters. We have been able to implement a function which will automatically call the respective new function from any legacy zade_boc change. This only works reliably for a handful of functions as many have had their parameters modified during the rewrite and a few have been removed as they were not needed. Below is a list detailing the changes made in the API. If a function is not listed, it has had no change apart from the rename from zade_boc_fnc_x
to bocr_main_fnc_x
.
Notice: All functions are now called with the bocr_main_
prefix instead of zade_boc_
. zade_boc_fnc_chestpack
is now called by bocr_main_fnc_chestpack
.
- Replaced with
bocr_main_fnc_chestpackLoadout
Example Return:
[["rhsusf_mag_6Rnd_M433_HEDP",2,6], ["rhsusf_mag_6Rnd_M441_HE",2,6], ["rhsusf_mag_6Rnd_M714_white",2,6], [["rhs_weap_m4a1_blockII_grip_bk","hlc_muzzle_Gunfighter_comp","rhs_acc_2dpZenit_ris","rhsusf_acc_g33_xps3",["rhs_mag_30Rnd_556x45_M855A1_PMAG",30],[],"rhs_acc_grip_ffg2"],1]]
- Removed. Use
bocr_main_fnc_chestpackMagazines
- Modified parameters.
PARAMETERS:
0: Unit
1: Backpack Classname
2: Backpack Loadout
3: Backpack Variables
- Backpack Loadout can be generated from
((getUnitLoadout _unit) select 5) select 1;
- Backpack Variables are a 2-dimensional array in the format
["Variable Name", "Variable Value"]
- Added optional parameter to specify quantity (Default: 1)
- Added optional parameter to clear all variables (Default: true)
- Removed. Load of chestpack is calculated inside of bocr_main_fnc_canAddItemToChestpack.sqf
- Added optional parameter to specify quantity (Default: 1).
- Returns the deleted / modified item upon success.
- Added optional parameter to specify quantity (Default: 1).
- Returns the deleted / modified magazine upon success.