I'm working on creating a custom rocket launcher, but when I spawn it into the game I am having a few issues. The first issue is that I can pick up and equip the launcher, preview stats etc. but I can't aim or fire the launcher. THe following is the weapon code Code: { "itemName" : "wepnemesiscannon", "price" : 50000 , "inventoryIcon" : "wepnemesiscannon.png", "maxStack" : 1, "rarity" : "Legendary", "description" : "The most feared rocket launcher in multiple galaxies, compliments of Jade Hounds", "shortdescription" : "^#1c7f31;Nemesis Cannon", "level" : 6, "category" : "Rocket Launcher", "tooltipKind" : "gun", "itemTags" : ["weapon","ranged","rocketlauncher"], "twoHanded" : true, "animation" : "/items/active/weapons/ranged/gun.animation", "animationParts" : { "butt" : "", "middle" : "wepnemesiscannon.png", "barrel" : "", "muzzleFlash" : "/animations/muzzleflash/rifle/riflemuzzle.png" }, "animationCustom" : { "particleEmitters" : { "muzzleFlash" : { "particles" : [ { "particle" : "rocketbarrelpuff", "offset" : [0.0, 0.0] }, { "particle" : "rocketbarrelpuff", "offset" : [0.0, 0.0] }, { "particle" : "rocketbarrelpuff", "offset" : [0.0, 0.0] } ] } }, "sounds" : { "fire" : [ "blast_small3.ogg" ] } }, "baseOffset" : [0.5, 0.225], "muzzleOffset" : [2.0, -0.05], "scripts" : ["/items/active/weapons/ranged/gun.lua"], "elementalType" : "fire", //"damageType" : "NoDamage", "primaryAbility" : { "scripts" : ["/items/active/weapons/ranged/gunfire.lua"], "class" : "GunFire", "fireTime" : 1.0, "baseDps" : 55, "energyUsage" : 50, "inaccuracy" : 0.05, "stances" : { "idle" : { "armRotation" : 0, "weaponRotation" : 0, "twoHanded" : true, "allowRotate" : true, "allowFlip" : true }, "fire" : { "duration" : 0, "armRotation" : 0, "weaponRotation" : 0, "weaponOffset" : [-0.2, 0], "twoHanded" : true, "allowRotate" : false, "allowFlip" : false }, "cooldown" : { "duration" : 0.4, "armRotation" : 0, "weaponRotation" : 0, "weaponOffset" : [-0.2, 0], "twoHanded" : true, "allowRotate" : false, "allowFlip" : false } }, "projectileCount" : 1, "fireType" : "auto", "projectileType" : "Nemesisrocket", "projectileParameters" : { "knockback" : 60 } }, "altAbilityType" : "barrage", "builder" : "/items/buildscripts/buildunrandweapon.lua" } Also there is no description appearing for the item which is also puzzling. Any help or suggestion is useful!
Very annoying as I am having the same issue and have seen multiple other threads of people with this issue but no one seems to ever respond.
I've made a thread of my own where I discuss my issue, so far the .lua hasnt been edited since I dont know how to code them very well and dont want to mess anything up. The files are in my thread if you'd like to check those.