Helor I'm trying to seek help with this question as previously i tried on various codes on destroying game objects once i collide with them, it works but not for my AI character with character controller and few childs on it. I wanted to test if the collision works for 1 hit kill before i add in GUI health textures for it.
But it seems like this script that i'm going to attach works on a small cube with box collider and with "is trigger" being ticked, but not towards my enemy. Hope someone can tell me another different way of coding it? or do i just need to tweak something else out of it?
I'm still new to Unity between and am eager to learn more from other people as well :) Thanks heaps!
Here's my code:
asked May 18 '10 at 07:20 AM
Hard to tell since it could be many things. Here's a list of what I think might be worth checking:
Also, I think @BeB_Wir3 is quite right, once you get it to work, it will try to destroy your player, not the enemy. That last line should be
answered Apr 07 at 10:58 AM