I got rid of the magical parachute. For the first spawn I added a parachute to the default gear; and adding
[_player,"B_AssaultPack_mcamo"] call zade_boc_fnc_addChestpack;
to each gear preset, for example
case (_bmoney >= 0 && _bmoney <= 499999): {//ACP-C2 .45 ACP + PDW2000 9mm
removeAllItems _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addVest "V_HarnessO_brn";
_player addBackpack "rhs_d6_Parachute_backpack";
_player addWeapon "Binocular";
_player addItem "FirstAidKit";
_player addItem "SmokeShell";
_player addMagazine "30Rnd_9x21_Mag";
_player addWeapon "hgun_PDW2000_F";
_player addMagazine "30Rnd_9x21_Mag";
_player addMagazine "30Rnd_9x21_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addWeapon "hgun_ACPC2_F";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
[_player,"B_AssaultPack_mcamo"] call zade_boc_fnc_addChestpack;
But the backpack appears empty. duh.
How can I add all the items to the backpack?
The addon itself adds items to the backpack: If I place the backpackonchest's module in the editor (synchronized with a unit), it looks like this:
just a frag...
class Item1
{
dataType="Logic";
class PositionInfo
{
position[]={17315.975,4.3458567,13987.186};
};
id=2;
type="zade_boc_moduleAdd";
atlOffset=4.7683716e-007;
class CustomAttributes
{
class Attribute0
{
property="zade_boc_moduleAdd_classname";
expression="_this setVariable ['classname',_value,true];";
class Value
{
class data
{
class type
{
type[]=
{
"STRING"
};
};
value="B_Carryall_cbr";
};
};
};
class Attribute1
{
property="zade_boc_moduleAdd_code";
expression="_this setVariable ['code',_value,true];";
class Value
{
class data
{
class type
{
type[]=
{
"STRING"
};
};
value="_this setObjectTextureGlobal [0, ""#(rgb,8,8,3)color(0,0,1,1)""];";
};
};
};
class Attribute2
{
property="zade_boc_moduleAdd_Units";
expression="_this setVariable ['Units',_value,true];";
class Value
{
class data
{
class type
{
type[]=
{
"STRING"
};
};
value="1";
};
};
};
class Attribute3
{
property="zade_boc_moduleAdd_mags";
expression="_this setVariable ['mags',_value,true];";
class Value
{
class data
{
class type
{
type[]=
{
"STRING"
};
};
value="[""30Rnd_65x39_caseless_mag"",20], [""30Rnd_65x39_caseless_mag_Tracer"",10]";
};
};
};
class Attribute4
{
property="zade_boc_moduleAdd_items";
expression="_this setVariable ['items',_value,true];";
class Value
{
class data
{
class type
{
type[]=
{
"STRING"
};
};
value="[""FirstAidKit"",3], ""hgun_P07_F"", [""16Rnd_9x21_Mag"",2]";
};
};
};
nAttributes=5;
};
};
};
How do I add this to PlayerDefaultGear?
happy new year