I have this script to damage my AI
//HONORAI AI Damage
if (hitInfo.collider.gameObject.GetComponent<Character>() != null)
{
hitInfo.collider.gameObject.GetComponent<Character>().ReceiveDamage(40, shooter, DamageType.Physical, false);
}
//.............................
I just dont know where to put it. I would like to put it on a bullet.
Pleaese assist Justin.
I looked at the link and found the impact callback, but where would i pout that script?
EDIT:
I copied the direct damage code from your link and added it to a GameObject with a collider. Just for testing. Nothing happeneds. I keep hitting player with this collider but no damage is taken