Tool Durability if Hit any Collider
I would like to create Durability for my tools and weapons.
I would attach to a script to my Tool : Tool "health" which is going to be decrease when hit anything what has Collider. CurrentHealth = MaxHealth- hardness Is that possbile somehow ?
Other script is attached to e.g. Tree Where there is a float hardness which affects the tool "health
I use UFPS . Any Idea? Thank you :)
Comment
Answer by arnesso · Dec 31, 2015 at 03:24 AM
Any help for how to code hit anything which has collider detection ?