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

but my problem is, I cant call ApplyDamage() whithout the declaration. I tried many things but its still crashing.