RealDocs

11 results for "spectator" in function

function
AGameModeBase::GetNumSpectators Engine

Returns the number of human players who are currently spectating.

function
APlayerState::IsOnlyASpectator Engine

Returns true if this player can only ever be a spectator and is permanently barred from entering the game as a playing participant.

function
APlayerState::IsSpectator Engine

Returns whether this player is currently spectating rather than actively playing.

function
AGameStateBase::ReceivedSpectatorClass Engine

Called when the `SpectatorClass` property becomes valid — on the server during init and on clients after replication.

function
APlayerState::SetIsOnlyASpectator Engine

Sets the permanent spectator-only flag, indicating this player can never transition to an active playing role in the session.

function
APlayerState::SetIsSpectator Engine

Sets the spectator flag on the PlayerState and replicates the change to clients.

function
AGameModeBase::GetNumPlayers Engine

Returns the number of active human players currently in the game, excluding spectators.

function
AGameModeBase::HandleStartingNewPlayer Engine

Called at the end of `PostLogin` to signal that the player is ready to enter the game.

function
APawn::InFreeCam Engine

Returns true if the local PlayerController is currently viewing this Pawn through a free-cam (spectator-style camera detached from the pawn).

function
AGameModeBase::MustSpectate Engine

Returns true if the given player is only allowed to join as a spectator.

function
AGameModeBase::RestartPlayer Engine

Finds a player start, spawns the default pawn, and possesses it — the full respawn flow in a single call.