Looking at the PerformRaycast() method, EActor is never set, so this is going to throw an exception when you call .ApplyDamage() on the uninitialized variable.
Might wanna set EActor to HitResult->Actor if the type is right.
Looking at the PerformRaycast() method, EActor is never set, so this is going to throw an exception when you call .ApplyDamage() on the uninitialized variable.
Might wanna set EActor to HitResult->Actor if the type is right.