AGameMode::PlayerSwitchedToSpectatorOnly

Will remove the controller from the correct count then add them to the spectator count.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameMode.h

Include

#include "GameFramework/GameMode.h"

Source

/Engine/Source/Runtime/Engine/Private/GameMode.cpp

Syntax

void PlayerSwitchedToSpectatorOnly
(
    APlayerController * PC
)

Remarks

Will remove the controller from the correct count then add them to the spectator count.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss