IOnlineSession::RemovePlayerFromSession

Removes a player from the session.

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h

Include

#include "Interfaces/OnlineSessionInterface.h"

Source

/Engine/Plugins/Online/OnlineSubsystem/Source/Private/OnlineSessionInterface.cpp

Syntax

virtual void RemovePlayerFromSession
(
    int32 LocalUserNum,
    FName SessionName,
    const FUniqueNetId & TargetPlayerId
)

Remarks

Removes a player from the session.

Parameters

Parameter

Description

LocalUserNum

the user that is starting the removal

SessionName

the session in which to unregister the player

TargetPlayerId

the player to remove

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