• 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 /
avatar image
0
Question by cwaite84 · Nov 22, 2013 at 08:24 PM · javascriptleveling

Borderlands Style Proficiencies

I am trying to figure out how to do this. Where when I do damage with assault rifles it sends the damage amount to the Assault Rifle proficiency. Also the same for the other weapons. I have tried something like this :

 enum gunTypes {assault, smg, shotgun, launcher, pistol, sniper}

I place this on my weapon and select the kind of weapon it is. Then I place this in my enemy script.

 if(hitPoints <= 0.0 && determiner.gunTypes.assault){
     //send the damage amount to the correct proficiency.
 }

I know I am probably way off, but I hope that you are able to see what I am trying to do and what I am asking for help with. All I wanna do is if I attack with a shotgun, for it to send the amount of damage I hit on the enemy back to the Shotgun Proficiency ONLY. So its basically like a sorting system, and i am going to be sorting each of the weapons into one of the gunTypes listed above. Any help would be great. 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

0 Replies

· Add your reply
  • Sort: 

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

16 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

Related Questions

Need help with a proficiency system(experience system) 1 Answer

Need help with a Borderlands style proficiency system. 0 Answers

A node in a childnode? 1 Answer

Need some help concerning script variables. 3 Answers

Experience System 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges