Deal Damage to Player

Mortenssen

New member
I have an NPC that follows me and that stuff but i want that when he attacks me, my player recieve the damage so what method i should call that will deal damage to the player or how i have to set that up? In previous FPS 1.x you could do a TryFire(); and if you could fire it would draw a raycast depending on the range of the weapon and deal damage to the player if it hit.
 
Top