05-08-2015, 05:07 PM
This is the loadout script i used for BLUFOR units. For some strange reason removes medikit from medic and toolkit from engineer.
Can you tell why? Cuz i can't Thank you!
{
if ((side _x == west) and (!loadp) and (local _x)) then
{
_isHandled = _x getVariable "loadout";
if (isNil "_isHandled") then
{
removeAllItems _x;
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
removeHeadgear _x;
removeGoggles _x;
_x addHeadgear "H_PilotHelmetFighter_B";
_x linkItem "ItemGPS";
_x setVariable ["loadout", 1, true];
};
};
} foreach allunits;
Can you tell why? Cuz i can't Thank you!
{
if ((side _x == west) and (!loadp) and (local _x)) then
{
_isHandled = _x getVariable "loadout";
if (isNil "_isHandled") then
{
removeAllItems _x;
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
removeHeadgear _x;
removeGoggles _x;
_x addHeadgear "H_PilotHelmetFighter_B";
_x linkItem "ItemGPS";
_x setVariable ["loadout", 1, true];
};
};
} foreach allunits;