Jump to content
Sign in to follow this  
Sqeemin

My Gun Shoots Sideways And Error creating model with scope = private

Recommended Posts

Hello

I have made a pistol for Arma 2, when i give it to a unit it comes up with error "creating M9_Glock with scope = private".I have changed scope = public to scope = private and vice versa and it doesn't change anything. also when I get into the game the gun shoots to the right and the name of the gun doesn't come up in the top right corner.

Has anyone had this problem?

I don't know how to fix it because I have just started, can someone please help?

config.cpp:

class CfgPatches {

class M9_Glock {

units[] = {};

weapons[] = {"M9_Glock"};

requiredAddons[] = {"A3_Weapons_F"};

};

};

class CfgWeapons {

class Default;

class PistolCore;

class Pistol;

class M9_Glock : Pistol {

scope = public;

model = "\m9_glock.p3d";

modelOptics = "\m9_optic.p3d";

picture = "\m9_glock_Inventory.paa";

minRange = 0;

minRangeProbab = 0.1;

midRange = 30;

midRangeProbab = 0.3;

maxRange = 50;

maxRangeProbab = 0.04;

optics = true;

distanceZoomMin = 50;

distanceZoomMax = 50;

displayName = $STR_DN_M9_GLOCK;

begin1[] = {"ca\sounds\weapons\pistols\m9_single1", 0.794328, 1, 700};

soundBegin[] = {"begin1", 1};

drySound[] = {"\ca\Weapons\Data\Sound\T33_dry_v1", 0.01, 1, 20};

reloadMagazineSound[] = {"\ca\Weapons\Data\Sound\pistol_reload", 0.1, 1, 20};

magazines[] = {"15Rnd_9x19_M9", "15Rnd_9x19_M9SD"};

dispersion = 0.02;

ffCount = 1;

recoil = "recoil_single_pistol_2outof3";

recoilProne = "recoil_single_pistol_prone_2outof3";

aiRateOfFire = 0.5; // delay between shots at given distance

aiRateOfFireDistance = 50;

class Library {

libTextDesc = $STR_LIB_M9_GLOCK;

};

descriptionShort = $STR_DSS_M9_GLOCK;

};

};

Edited by Sqeemin

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×