- Home /
Question by
keeskaaskoekje · Nov 26, 2013 at 02:20 PM ·
colliderfpsbullettps
collider doesnt react to script
function OnCollisionEnter (collision : Collider) { if(collision.gameObject.tag == "AiBullet") { Health -= 20; } }
the bullets have collider, the character has a collider, but the bullets go straight through the collider, and do no damage.
Comment
changed to (collision : Collision), also did nothing
did you make sure the bullet has the tag AiBullet? Sometimes I forget ;D
Your answer
Follow this Question
Related Questions
Bullet Damage on different Limbs 1 Answer
Scoring system based on time remaining and targets hit 4 Answers
Bullet Fire script not working 1 Answer
Attach a animation to 0 Answers