Search the Community
Showing results for tags 'ranged weapon'.
Found 1 result
Hi, I am very noob with all this coding thing and Lua files. I tried to do some things for adding to the game, some of them asked before in Suggestion forum. The thing is I managed to do some of them, but find a BIG BUG when I made a Ranged Weapon. At first couldnt shoot with it. Then I thought I fixed some things but instead the weapon became endless ammo. It shoots, it does what was supossed to do in the rest of things, but the ammo don't decrease. Then I messed all up in the ReloadUtil file and ... well, I am a bit lost. At first I tried to make the weapon use the same pistol clip as the default gun, but couldnt do it to reload, so I made a new item, SBerettaclip (it is almost the same as default but with a change in name and I get it from Necroforge spawning by this moment). Here are the Items as part of WeaponsGuns txt file in the folder scripts: And here is the CompilationReloadUtil lua file put in the folder lua/shared/Reloading: Can somebody pleazeeeeed help me with this mess?