Hi all,
I’m having a problem regarding the RPG Combat Health Component.
( Unity 3rd Person Combat & Traversal > Melee Combat > Dealing Damage)
I saw there was a similar thread recently (21 days ago) however I cannot seem to solve it.
I checked to see if the Component is getting fetched (TryGetComponent) by adding a debug log after the conditional.
It never triggers.
I did what the previous thread suggested
and added debug logs for enter and exit (which are being logged)
and removed drag to 0 so it will trigger all exits and enters properly.
Here is my WeaponDamage script:
My Health script:
Here is the console log (with drag 0):
here is my Weapon setup:
The health script is on the same layer as the target (cube, sphere ) collider as suggested in previous post:
Any suggestions would be much appreciated,
Thanks and all the best