Help Thread for Epoch Remove Weapons

Here is what I am running into is this normal arma or is something screwy?

All my Apaches AH64d AH1Z all have hydras in gunners seat.
This is not due to your mod... I was just trying to see if the is a normal thing.

What I am doing with your mod is trying to move it back, but I am running into an issue.

I can only add weapons to the gunners seat and not to the pilot. How do I specifically add weapons to pilots seat?
 
Hi, I've been trying to get this mod working on my test server, installed it exactly as stated and as a result our Infistar Anti-Hack has stopped loading completely, really strange, can't work out why.

Other than that, got it to strip all the weapons off the AH64D and was even able to replace the gunners main cannon with a single M2 with the script as it is below, but I was hoping to give the pilot a weapon as well, maybe another M2 or a M134 but I'm not quite sure how to get that to work. Any help would be much appreciated.

//## Helicopters
//Apache remove weapons
if (_object isKindOf "AH64D") then {
_object removeWeapon "M230";
_object removeWeapon "HellfireLauncher";
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeMagazine "8Rnd_Hellfire";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeMagazine "8Rnd_Sidewinder_AH64";
_object addWeapon "M2";
};
 
You are in the same boat with me...

I keep find NULL about how to get the weapon to the pilot seat.

I know its possible Seen it on alot of military servers...

Do you happen to have inifistar installed?


I am starting to question whether or not it may have something to do with it.
I was going to try searching its code tonight.


Also I have been looking into trying to figure out if there is a way to spefically add the weapon to -1 (the Pilot) or if the addWeapon function is the only way.

I'll show you what I have tired tonight, but please let me know what you figure out.
 
Yes I have infistar installed but it's no longer loading it at all when the server starts, it's like this mod has somehow overridden / disabled it.

I'm at a loss at the moment how to get weapons onto the pilot and not just the gunner. With the default code I also found that it removes the rockets from the AH6J and leaves the M134's as I wanted but there's no way to reload them, so I'm going to have to just remove them then add one back in I suppose.
 
My code published here already got it in it, even explained it somewhere. The number in one of the brackets determines the seat. -1 is pilot or gunner, dunno just try it out. go -1 then 0 then 1 etc pp
 
Check you Server_Monitor.sqf make sure the exec script is the first thing in that file.


I have also determined my issue is not normal.... Infistar is messing with my apaches and helis moving the hydras to the gunner seat.
 
Yep somehow the line had vanished, I have a feeling I know how, I may or may not have replaced the server_functions with an older backup, derp, sorry guys, thanks for the help.
 
Hate to come back and ask for more help but I'm at a loss. This is what I've put in now instead.

//## Helicopters
//Apache remove weapons
if (_object isKindOf "AH64D") then {
_object removeWeapon "M230";
_object removeWeapon "HellfireLauncher";
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeMagazine "8Rnd_Hellfire";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeMagazine "8Rnd_Sidewinder_AH64";
_object addWeapon "M2";
_object WeaponsTurret [-1];
_object addWeapon["M134",[-1]];
};

But with it like this you can't even connect to the server. Do I need to specify which weapons are being removed from which position for each one then add them back on and specify each position for each weapon? Because by default the M2 goes to the gunner, I'm just trying to add the M134 to the pilot.
 
Two things.

addWeapon can't receive an array, so the ["M134",[-1]] won't work... (as far as I have had experience with it.)
This was what I was trying to figure out as well. There is no direct way to add a weapon to a particular seat.

I don't know how to answer this for you...

and number two Email Infistar. He made an update last night that fixed my issues with weapons. He should give it to you.

a
 
Thanks Dajax. Ok no worries, looks like the gunships will just have to have a gunner to use the guns. The Infistar I broke in the first place, I accidentally removed the line that loads it by loading an older file that didn't have it.
 
NP


Well, He recently updated the AH.sqf file to fix some resgistering issues... maybe it could solve this pilot gunner issues for you too.
 
So, this is the code i used in the fnc_remWepSG.sqf

//## Helicopters
//Apache remove weapons
if (_object isKindOf "AH64D") then {
_object removeWeapon "M230";
_object removeWeapon "HellfireLauncher";
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeMagazine "8Rnd_Hellfire";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeMagazine "8Rnd_Sidewinder_AH64";
_object addWeapon "M134";
};

It disabled the M230, and the Hellfire, added the M134, but did not remove the hydra. This is the issue i have been having for ever now. Any ideas?
 
Mine looks like this and is confirmed working on my server.

//AH64D remove weapons
if (_object isKindOf "AH64D") then {
_object removeWeapon "M230";
_object removeWeapon "HellfireLauncher";
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeMagazine "8Rnd_Hellfire";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeMagazine "8Rnd_Sidewinder_AH64";
_object addWeapon "M2";
_object addWeapon "M240_veh";
};

So no idea why it didn't remove the Hydras for you.
 
no matter what i do, i can not remove the hydra. i have tried using the seat numbers, with out seat numbers. adding different weapons, doesnt matter. Hydra will not deactivate
 
Hey James, I'll post up my whole config.

//Remove Weapon SiothieGaming german Youtubechannel: http://www.youtube.com/user/SiothieGaming
//Lines underneath are just a small tutorial
// the Number in the Bracket is Important, -1 means Pilot seat
//Try getting up with these numbers when you want to remove from another seat (e.g. gunner, front gunner, rear gunner etc. pp)
// For every seat you have to do something like i did
//_object magazinesTurret [-1];
//_object removeMagazinesTurret ["14Rnd_FFAR",[-1]]; If you want to remove something from another seat at the same time you need to do something like this:
// _object magazinesTurret [1];
//_object removeMagazinesTurret ["14Rnd_FFAR",[1]]; I'm not completly sure now which number is which seat. I only know that -1 is pilot seat.
{

//## Helicopters
//AH6J_EP1 remove weapons
//if (_object isKindof "AH6J_EP1") then {
// _object magazinesTurret [-1];
// _object removeMagazinesTurret ["14Rnd_FFAR",[-1]];
// _object WeaponsTurret [-1];
// _object removeWeapon "FFARLauncher_14";
//};

if (_object isKindOf "AH6J_EP1") then {
_object removeWeapon "FFARLauncher_14";
};

//AH64D remove weapons and add a M2 and a M240
if (_object isKindOf "AH64D") then {
_object removeWeapon "M230";
_object removeWeapon "HellfireLauncher";
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH64";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "28Rnd_FFAR";
_object removeMagazine "8Rnd_Hellfire";
_object removeMagazine "1200Rnd_30x113mm_M789_HEDP";
_object removeMagazine "8Rnd_Sidewinder_AH64";
_object addWeapon "M2";
_object addWeapon "M240_veh";
};
//Mi24_D remove weapons and add a DSHKM and a PKT
if (_object isKindOf "Mi24_D") then {
_object removeWeapon "YakB";
_object removeWeapon "AT2Launcher";
_object removeWeapon "57mmLauncher_128";
_object removeMagazine "64Rnd_57mm";
_object removeMagazine "128Rnd_57mm";
_object removeMagazine "4Rnd_AT2_Mi24D";
_object removeMagazine "1470Rnd_127x108_YakB";
_object addWeapon "DSHKM";
_object addWeapon "PKT";
};
//AH1Z remove weapons and add a M134
if (_object isKindOf "AH1Z") then {
_object removeWeapon "M197";
_object removeWeapon "HellfireLauncher";
_object removeWeapon "FFARLauncher";
_object removeWeapon "SidewinderLaucher_AH1Z";
_object removeMagazine "750Rnd_M197_AH1";
_object removeMagazine "8Rnd_Hellfire";
_object removeMagazine "38Rnd_FFAR";
_object removeMagazine "2Rnd_Sidewinder_AH1Z";
_object addWeapon "M134";
};
//AW159 Lynx add a gun
if (_object isKindOf "AW159_Lynx_BAF") then {
_object addWeapon "M240_veh";
};

//if (_object isKindof "AH6J_EP1") then {
// _object removeMagazinesTurret "14Rnd_FFAR";
// _object removeMagazinesTurret "4000Rnd_762x51_M134";
// _object removeWeapon "FFARLauncher_14";
// _object removeWeapon "TwinM134";
// _object addWeapon "M134";
//};

//THIS IS STILL IN TESTING PHASE, IT COULD SCREW UP YOUR WHOLE SERVER
//Just put the Classname of the Vehicle there and it should disable thear vision.
// For example my server runs fine with it (Epoch Panthera) but a friend of mine screwed up his whole database
//if (_object isKindof "AH64D") then {
// _object disableTIEquipment true;
//};
//TESTING STUFF END
} forEach vehicles; //Not completly necessary, it just makes sure no vehicle is left out during the process (e.g. high server load)



As you can see I've commented some stuff out too.
 
Back
Top