APlayerController::GetSplitscreenPlayerByIndex

Returns the PlayerState associated with the player at the specified index.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

APlayerState * GetSplitscreenPlayerByIndex
(
    int32 PlayerIndex
) const

Remarks

Returns the PlayerState associated with the player at the specified index.

Returns

the PlayerState associated with the player at the specified index, or None if the player is not a split-screen player or the index was out of range.

Parameters

Parameter

Description

PlayerIndex

the index [into the local player's GamePlayers array] for the player PlayerState to find

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