- Home /
Damage problem
can anyone help me I can't do any damage on the enemies.
I use this this character as a player link text
Comment
Answer by Berenger · May 08, 2012 at 05:57 AM
I suppose the impact is detected with a raycast, which can returns the collider through the RaycastHit parameter. From there, you can access whatever component keeping track of the pnj's hp and apply the weapon's damage to it, as it is probably the component casting the ray in the first place.
But I'm only guessing, given the amount of detail we have to work with.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Health Question 1 Answer
Damage rate HELP 1 Answer
Prefab doesn't work when placed in another scene. 0 Answers
Bullet not destroying on collision 1 Answer