• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Adding new guns to 7 Days to Die (A17)

I figured the tutorial for adding guns to the game needed updating, especially since things have changed in A17. If you don't have your prefab setup correctly, you'll be presented with NRE's upon trying to equip your new gun.

So I did a tutorial thing!

Hopefully it'll be of use to folks. :)

 
Export script still works. :)

I think I'm using 2018.something for unity. If you open your log file, it tells you what version of unity the game is using.

That's the one I currently use. I think Xyth is using 2019.2 for his entities though.

 
As suggested i'm using unity 2019.1.14, but I am getting the following error (Null Reference Exception: Object reference not set to an instance of an object) when loading up. Untitled.jpg

Here's my hierarchy in Unity, followed the same pattern as the 7d2d A18 pistol

Capture.PNG

And the XML file, used pistol as a base

Capture2.PNG

Help would be appreciated. Thanks !

 
Last edited by a moderator:
Back
Top