Jump to content

Search the Community

Showing results for tags 'reload'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. 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.
×
×
  • Create New...