IOnlineGameActivity::UpdatePlayerLocation

Update player location

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

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

Include

#include "Interfaces/OnlineGameActivityInterface.h"

Syntax

void UpdatePlayerLocation
(
    const FUniqueNetId & LocalUserId,
    TOptional< FOnlineActivityPlayerLocation > & ActivityPlayerLocation
)

Remarks

Update player location

The game is expected to call this function periodically. ZoneId/Coordinates are also used when starting and stopping an activity

Parameters

Parameter

Description

LocalUserId

Id of user calling update on the player location

ActivityPlayerLocation

zone id and player map coordinates (X and Y values)

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