Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (_object isKindof "AW159_Lynx_BAF") then {
_object magazinesTurret [-1];
_object removeMagazinesTurret ["",[-1]];
_object removeMagazinesTurret ["",[-1]];
_object WeaponsTurret [-1];
_object removeWeapon "";
_object removeWeapon "";
if (_object isKindof "AW159_Lynx_BAF") then {
_mag = _object magazinesTurret [-1];
diag_log ("AMMO LIST OF AW159_Lynx_BAF: " + str(_mag));
cpt = 0;
{
_object removeMagazinesTurret [_mag select cpt,[-1]];
diag_log ("REMOVE AMMO OF AW159_Lynx_BAF: " + str(_mag select cpt));
cpt = cpt + 1;
} forEach _mag;
};
Here is what i've done for the Wildcat :
It doesn't remove the turret, but i don't care, cause you can't reammo the turrets ^^Code:if (_object isKindof "AW159_Lynx_BAF") then { _mag = _object magazinesTurret [-1]; diag_log ("AMMO LIST OF AW159_Lynx_BAF: " + str(_mag)); cpt = 0; { _object removeMagazinesTurret [_mag select cpt,[-1]]; diag_log ("REMOVE AMMO OF AW159_Lynx_BAF: " + str(_mag select cpt)); cpt = cpt + 1; } forEach _mag; };
if (_object isKindof "AH64D") then {
_mag = _object magazinesTurret [-1];
cpt = 0;
{
_object removeMagazinesTurret [_mag select cpt,[-1]];
cpt = cpt + 1;
} forEach _mag;
_mag = _object magazinesTurret [0];
cpt = 0;
{
_object removeMagazinesTurret [_mag select cpt,[0]];
cpt = cpt + 1;
} forEach _mag;
};