Skip to content

Instantly share code, notes, and snippets.

@dorgonman
Created June 30, 2018 16:22
Show Gist options
  • Save dorgonman/cfdee32feb78b8123e6bed2585f414aa to your computer and use it in GitHub Desktop.
Save dorgonman/cfdee32feb78b8123e6bed2585f414aa to your computer and use it in GitHub Desktop.
wordpress_post1583_04.cpp
void APlayerController::ReceivedSpectatorClass(TSubclassOf<ASpectatorPawn> SpectatorClass)
{
if (IsInState(NAME_Spectating))
{
if (GetSpectatorPawn() == NULL)
{
BeginSpectatingState();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment