Syntax for line trace hitting and applying damage to characters

dougemmedhen
Fri, 06 Oct 2017 02:49:24 +0000
Character & Animation

I’m at my wit’s end, I have a weapon line trace that applies damage to destructible meshes, now I’m trying to figure out how to apply damage to characters. Here’s what I got:
ACharacter *person= Cast(hit.getactor());
If(person->Actorhastag (FName (“RegularDude”)
{
}

That’s it. What is the syntax for actually hitting the character/capsule component? Please help me. The sooner I get this taken care of the better

6 posts - 1 participant