Needing help with my game i'm creating.
Hello, I'm running into a few issues with my Island Survival game that i'm working on right now. I'm very new with Unity and can't script worth a damn, nor do I know how to give animations to objects. I am using the Inventory Master script or asset or program. I need a lot of help in general, but I'll narrow it down to a few particular things. Alright, this Island Survival is pretty much like all of the others, I can currently craft an axe, and put it into my hotbar. What I need help with is, when I hit 1 when it's in the first hotbar slot, I want it to appear in front of me, as if it's in my hands. Does anyone know how I can equip it? I have selected a model for it, I can move it around in my inventory, and I have made it a weapon, in the Inventory Master manager. Thanks.
I'm not great with code either, but I believe you'll need to add some logic to your character. Here's what I think:
Check if number 1 is pressed
Check if item is assigned to hotbar slot 1
If yes, find that item's ID (in order to instantiate it)
Instantiate object as child of character (probably the hands)
Hopefully this will get you moving in the right direction.
NonBreaker
Edited for readability