ugameplaystatics::getplayercharacter(GetWorld(), 0)->GetName() crashes editor

I was thinking that too but I got it to work once. I’m following a tutorial that does the same thing. The only difference is that they are using the first person player and/or the FPS template while I’m using the flying template. Maybe the flying template isn’t a character? Maybe I should try get pawn and see how that works?