Forum Jump :

Author Message


Posts: 16
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name: Sgt. Justin

 
#1 Posted at 2017-08-31 15:29        
     
This is what i have currently working
_ITEM_MACRO_item = {
    params ["_unit", "_item", "_testedClass", "_container"];
    _unit removeItem _item;
    systemChat format ["%1 was removed.", getText (configFile >> "CfgWeapons" >> _item >> "displayName")];

    if (_mode == 1) then {
        _container addItemCargoGlobal [_item, 1];
    };
};

But what i need is something like this
_ITEM_MACRO_item = {
    params ["_unit", "_item", "_testedClass", "_container"];
    _unit removeItem _item;
    systemChat format ["%1 was removed.", getText (configFile >> "CfgWeapons", "CfgMagazines", "CfgAmmo" >> _item >> "displayName")];

    if (_mode == 1) then {
        _container addItemCargoGlobal [_item, 1];
    };
};

Any suggestions?