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

I think the flying template is not character. Getpawn should work tho.