daddy-whale 11 Posted February 26, 2018 Hello, I want to put FLyingpenguins flak script inside a Flakvierling 38, but, I can't seem to get it right. Anyone here with knowledge of how to make this a reality? Script: http://www.armaholic.com/page.php?id=28654 Init line: this removeMagazinesTurret ["LIB_80x_SprGr_FlaK_38", [0]]; this addEventHandler ["Fired", {deleteVehicle (_this select 6); _this execVM "Flak\flak.sqf";}]; Thank you so much in advance -Whale Share this post Link to post Share on other sites
f2k sel 164 Posted February 27, 2018 I suspect the Flakvierling 38 doesn't have "autocannon_35mm" which the script depends on. I did try the script on a vehicle with a different cannon and after making a few changes it worked but as I don't know what if any cannon the Flakvierling 38 has I can't try it. 2 Share this post Link to post Share on other sites
HazJ 1289 Posted February 27, 2018 I am too lazy to restart game with IFA3 preset enabled at the moment... @.kju ? EDIT: Changed my mind. :P access = 3; aiDispersionCoefX = 3; aiDispersionCoefY = 4; aimTransitionSpeed = 1; aiRateOfFire = 5; aiRateOfFireDispersion = 0; aiRateOfFireDistance = 500; ammo = ""; artilleryCharge = 1; artilleryDispersion = 1; autoFire = 1; autoReload = 1; backgroundReload = 0; ballisticsComputer = 0; burst = 1; canDrop = 1; canLock = 0; canShootInWater = 0; cartridgePos = "nabojnicestart"; cartridgeVel = "nabojniceend"; changeFiremodeSound[] = {"",1,1}; cmImmunity = 1; count = 0; cursor = "EmptyCursor"; cursorAim = "EmptyCursor"; cursorAimOn = ""; cursorSize = 1; descriptionShort = ""; detectRange = 0; dispersion = 0.002; displayname = "FlaK 38"; distanceZoomMax = 400; distanceZoomMin = 400; drySound[] = {"",1,1}; emptySound[] = {"",1,1}; enableAttack = 1; ffCount = 1; ffFrequency = 1; ffMagnitude = 0; fireAnims[] = {}; fireLightAmbient[] = {0,0,0}; fireLightDiffuse[] = {0.937,0.631,0.259}; fireLightDuration = 0.05; fireLightIntensity = 0.2; fireSpreadAngle = 3; forceOptics = 0; handAnim[] = {}; hiddenSelections[] = {}; hiddenSelectionsTextures[] = {}; hiddenUnderwaterSelections[] = {}; hiddenUnderwaterSelectionsTextures[] = {}; inertia = 0.5; initSpeed = 0; irDistance = 0; irDotIntensity = 0.001; irLaserEnd = "laser dir"; irLaserPos = "laser pos"; laser = 0; LIB_countMagazineStateSource = "LIB_FlaK_38_count_magazine_state"; LIB_reloadMagazineStateSource = "LIB_FlaK_38_reload_magazine_state"; LIB_reloadWeaponStateSource = "LIB_FlaK_38_reload_weapon_state"; LIB_WeaponType = "AUTOCANNON_AA"; lockAcquire = 1; lockedTargetSound[] = {"",0.000316228,6}; lockingTargetSound[] = {"",0.000316228,2}; magazineReloadSwitchPhase = 1; magazineReloadTime = 3; magazines[] = {"LIB_20x_SprGr_FlaK_38"}; maxRange = 500; maxRangeProbab = 0.04; maxRecoilSway = 0.008; memoryPointCamera = "eye"; midRange = 150; midRangeProbab = 0.58; minRange = 1; minRangeProbab = 0.3; model = ""; modelMagazine = ""; modelOptics = ""; modelSpecial = ""; modes[] = {"manual","close","short","medium","far"}; multiplier = 1; muzzleEnd = "konec hlavne"; muzzlePos = "usti hlavne"; muzzles[] = {"this"}; nameSound = "cannon"; optics = 1; opticsDisablePeripherialVision = 0.67; opticsFlare = 1; opticsID = 0; opticsPPEffects[] = {}; opticsZoomInit = 0.75; opticsZoomMax = 1.25; opticsZoomMin = 0.25; picture = ""; primary = 10; recoil = "empty"; recoilProne = ""; reloadAction = ""; reloadMagazineSound[] = {"",1,1}; reloadSound[] = {"",1,1}; reloadTime = 1; scope = 1; selectionFireAnim = "zasleh"; showAimCursorInternal = 0; showEmpty = 1; shownUnderwaterSelections[] = {}; showSwitchAction = 0; showToPlayer = 1; simulation = "Weapon"; sound[] = {"",1,1}; soundBegin[] = {"sound",1}; soundBeginWater[] = {"sound",1}; soundBullet[] = {"emptySound",1}; soundBurst = 1; soundClosure[] = {"sound",1}; soundContinuous = 0; soundEnd[] = {"sound",1}; soundLoop[] = {"sound",1}; swayDecaySpeed = 2; textureType = "default"; type = 65536; uiPicture = ""; useAction = 0; useActionTitle = ""; useAsBinocular = 0; useModelOptics = 1; value = 2; weaponLockDelay = 0; weaponLockSystem = 0; weaponSoundEffect = ""; weight = 0; zeroingSound[] = {"",1,1}; Try changing "autocannon_35mm" to "AUTOCANNON_AA" and see if that works. 1 Share this post Link to post Share on other sites
daddy-whale 11 Posted February 27, 2018 You guys are lifesavers. Thanks! +1 Respect! Edited: Didn't work, tried changing the script and replaced it with both "LIB_FlaK_38_X4" and "AUTOCANNON_AA". Sorry to bother you, but, I have very basic knowledge of scripting. Share this post Link to post Share on other sites
f2k sel 164 Posted March 1, 2018 Along with substituting the auto cannon references Try changing this line if (_i > _hold && (_x select 3) > 0) then { to this line. if (_i == _hold && (_x select 3) > 0) then { I checked the script and I had to do that to get it to work with the BTR Kamysh, it may be something to do with the number of rounds. 1 Share this post Link to post Share on other sites
daddy-whale 11 Posted April 11, 2018 Want to thank everyone for posting and helping. Really loving this community. F2k sel's substitution script worked like a charm. Thank you so much everyone. Sorry for not posting earlier, have my finals soon. Cheers! -DWhale Share this post Link to post Share on other sites