Newbie Simple Melee
Hello, I am very new to Unity, and a student trying to learn gamedesign. Right now for an assignment I am creating a simple player level. I couldn't find any help on exactly what I am trying to do however. I created a 3D model of a stick. I know how to import the model into Unity, but not how to create/ use it as a melee weapon.
What I want to do is simple, using the FPS controller I want to be able to walk up to the weapon and "pick" it up right into my hand. If I find another weapon (say a sword later) I want it to drop whats in your hand and just pick up the new weapon (No inventory system). I then want to be able to walk around in FPS while seeing my model, and being able to swing it with the shift key. Maybe an HP system too (like 1 hit and an enemy or NPC would disappear).
I am sorry if this is too much to ask for, just looking for guidance. I don't know any scripting as of yet.
Thank you.
Answer by ElementalVenom · Jan 02, 2016 at 04:03 AM
For the item swap i made a whole video for it: LINK
For the health bar ive done a video on that in the past: LINK
And for the actually hitscan/kiling i will make a video in a few days.
Awesome! Will check these out in the morning.
Do the videos cover how to put an object in your hand in FPS?
Um. Briefly. I didn't see that you wanted that or i would have touched on it more. In the first video when i attach the stick that will be along the lines of what you will want to do.
Going to check out the videos now, but theyre marked private.