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

Are you including the header that AEnemyActor is in?

Post your includes for this file please (#include blah at top of file)