• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by Link4lyfe · Dec 29, 2015 at 10:17 PM · collisiondestroymodelhithealthbar

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

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.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Link4lyfe · Jan 02, 2016 at 04:17 AM 0
Share

Awesome! Will check these out in the morning.

Do the videos cover how to put an object in your hand in FPS?

avatar image ElementalVenom Link4lyfe · Jan 02, 2016 at 04:39 AM 0
Share

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.

avatar image Link4lyfe ElementalVenom · Jan 02, 2016 at 03:01 PM 0
Share

Going to check out the videos now, but theyre marked private.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

creating a Breakout game in unity3d c#-bricks wont get destroyed 0 Answers

Duplicate Remains After Destroying Object 1 Answer

OnCollisionEnter doesn't work ! 2 Answers

Game Objects wont appear after restart 0 Answers

I need to make a Sphere appear 15 seconds after the FPSController has collided with a Cube and then make the Cube disappear after 30 seconds. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges