Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/IOnlineGameActivity
Description
Update player location
Note: The game is expected to call this function periodically. ZoneId/Coordinates are also used when starting and stopping an activity
| Name | UpdatePlayerLocation |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineGameActivityInterface.h |
| Include Path | #include "Interfaces/OnlineGameActivityInterface.h" |
void UpdatePlayerLocation
(
const FUniqueNetId & LocalUserId,
TOptional < FOnlineActivityPlayerLocation > & ActivityPlayerLocation
)
Parameters
| Name | Remarks |
|---|---|
| LocalUserId | Id of user calling update on the player location |
| ActivityPlayerLocation | zone id and player map coordinates (X and Y values) |