Cannot call a function from another class! No errors UE4 just closes itself

Oh I see… I totally forgot this part thank you.

I tried your Solution, but now its saying to me

EActor  = HitResult->GetActor();


no operator "=" matches these operands

I couldnt find a method to replace that “=”…
How can I fix this now?