Mahlzeit Leute!
Ich habe auf der Karte eine Kiste platziert, welche Items bekommt wenn man fertig mit dem Craften ist..
Code
_backpack = backpack player;
removeBackpack player;
Schneiderei_Kiste addBackpackCargoGlobal [_backpack,1];
player addBackpack _newItem;
hint "Deine altes Item ist in der Kiste hinter dir.(Für Rucksäcke derzeit nicht funktionsfähig!)";
Leider kann ich dort keine Rucksäcke raus nehmen.. vllt kennt jemand den Fehler und kann mir weiter helfen!
Spoiler anzeigen
Code
Die Kiste class Item6072
{
dataType="Object";
class PositionInfo
{
position[]={7274.002,174.29866,13969.356};
angles[]={0,1.0180855,0};
};
side="Empty";
class Attributes
{
name="Schneiderei_Kiste";
disableSimulation=1;
};
id=17560;
type="Land_PlasticCase_01_small_gray_F";
atlOffset=0.47877502;
class CustomAttributes
{
class Attribute0
{
property="ammoBox";
expression="[_this,_value] call bis_fnc_initAmmoBox;";
class Value
{
class data
{
class type
{
type[]=
{
"STRING"
};
};
value="[[[[],[]],[[],[]],[[],[]],[[],[]]],false]";
};
};
};
class Attribute1
{
property="allowDamage";
expression="_this allowdamage _value;";
class Value
{
class data
{
class type
{
type[]=
{
"BOOL"
};
};
value=0;
};
};
};
nAttributes=2;
};
};
Alles anzeigen