ApplyHit()
Apply bullet hit to the player
Remarks
Accesses the ApplyDamage function in the Health Component of a player or the built in Apply Damage function in the editor if the hit actor is not a player.
Actions
- Search for Hit Receiver on hit object
- Play hit marker sound if the Hit Receiver component is found on the hit actor, if not, move on.
- Cast hit to BP_ThirdPersonCharacter
- If cast fails apply damage using built-in Apply Damage function
- If cast does not fail, check if player is dead.
- If player if still alive, apply damage the hit player's Health Component
- Play hit marker sound.
Return values
- KilledPlayer:Boolean
- ValidHit:Boolean