Search the Community
Showing results for tags 'reload'.
-
I am trying to update my Fletchery mod to Build 27, but I am having sudden problems with the reload system. The code for it is here: local wepBow0 = { name = getItemText("Crossbow"), moduleName = 'Fletchery', reloadClass = 'ISShotgunWeapon', ammoType = 'Bolts', shootSound = 'arrowFire', clickSound = 'click', ejectSound = 'arrowReload', insertSound = 'arrowReload', rackSound = 'arrowReload', maxCapacity = 1, reloadTime = 20, rackTime = 10};local wepBow1 = { name = getItemText("Homemade Bow"), moduleName = 'Fletchery', reloadClass = 'ISShotgunWeapon', ammoType = 'Arrows', shootSound = 'arrowFire', clickSound = 'click', ejectSound = 'arrowReload', insertSound = 'arrowReload', rackSound = 'arrowReload', maxCapacity = 1, reloadTime = 15, rackTime = 10};local wepBow2 = { name = getItemText("Bow"), moduleName = 'Fletchery', reloadClass = 'ISShotgunWeapon', ammoType = 'Arrows', shootSound = 'arrowFire', clickSound = 'click', ejectSound = 'arrowReload', insertSound = 'arrowReload', rackSound = 'arrowReload', maxCapacity = 1, reloadTime = 10, rackTime = 10};local wepSling = { name = getItemText("Sling"), moduleName = 'Fletchery', reloadClass = 'ISShotgunWeapon', ammoType = 'Stones', shootSound = 'slingFire', clickSound = 'click', ejectSound = 'arrowReload', insertSound = 'arrowReload', rackSound = 'arrowReload', maxCapacity = 1, reloadTime = 10, rackTime = 10}; ReloadUtil:addWeaponType(wepBow0)ReloadUtil:addWeaponType(wepBow1)ReloadUtil:addWeaponType(wepBow2)ReloadUtil:addWeaponType(wepSling)The crossbow, sling and bow (wepBow0, wepBow2 and wepSling) work fine, but the Homemade Bow (wepBow1) will not reload in-game. When I attempt to do so, I get the following error message in the console: I have no idea what to do here, I've tried everything I can think of. Any help would be appreciated! EDIT: My guess would be that this is because both bows are trying to use the same ammo type, so the second is overwriting the first, but I want them to use the same arrows, so what I think I need is a workaround to use the same ammo.