Forum begins after the advertisement:
-
::Hi,
Whenever I level up my knife weapon it does not appear after. I tried messing with the code, but nothing works. I looked at the inspector for the player whenever it levels up and the controller is still there, so I’m thinking it might have to do something with the instantiation or the prefab, but not sure. Help would be appreciated.
::Make sure you assign your Knife weapon data to the Available Weapons list in the Player Inventory component.
::I made sure that it is, but the prefab still does not appear whenever I level up.
This is what it shows in the console whenever I do level up the knife (I called it dagger in mine).
Let me know if you need me to paste code in here
::Nevermind, I got it to work.
I forgot to uncomment the line
result.projectilePrefab = s2.projectilePrefab ?? s1.projectilePrefab;
in Weapon script.
Thank you anyways.
Advertisement below: