An Account in the GamePlatform plugin is an abstraction of the platform account it belongs to., allowing for identification of actions targeted at specific platform accounts (the local user, friends or matchmade accounts, for example).
On the technical side, the Account contains a unique identifier based on the underlying identification data provided by the platform (e.g.: a Steam ID on the Steam platform). It also contains the unique platform service identifier that the platform account belongs to.
Account service functions and events provide a way to get information related to any account on a platform. For example, you can retrieve avatars and nicknames of users, retrieve a list of the local user's friends and blocked users on the platform, and be notified when another user on the platform changes their nickname etc.
Checks if the supplied platform account is on the local account's friends list.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::IsFriendWith |
Flow Graph Nodes | GamePlatform:Account:CheckIsFriend |
Schematyc Nodes | Function::GamePlatform::Service::Accounts::IsFriendWith |
Retrieves details of the specified account on the platform.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::GetAccountInfo |
Flow Graph Nodes | GamePlatform:Account:GetAccountInfo |
Schematyc Nodes |
|
Retrieves the specified account's avatar texture ID of a specified size.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::GetAvatar |
Flow Graph Nodes | GamePlatform:Account:GetAvatar |
Schematyc Nodes | Function::GamePlatform::Service::Accounts::GetAvatar |
Some platforms only have one size of avatars (e.g. Discord), while others only provide the Small size by default. To get the Medium and Large sizes, you need to use the RequestUserInformation function and wait for the OnAvatarImageLoaded event.
Retrieves a list of accounts blocked by the local account.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::GetBlockedAccounts |
Flow Graph Nodes | GamePlatform:Account:GetBlockedAccounts |
Schematyc Nodes | Function::GamePlatform::Service::Accounts::GetBlockedAccounts |
Retrieves a list of "friend" accounts associated with the local account.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::GetFriendAccounts |
Flow Graph Nodes | GamePlatform:Account:GetFriends |
Schematyc Nodes | Function::GamePlatform::Service::Accounts::GetFriendAccounts |
Retrieves the identifier of the local account on the platform.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::GetLocalAccount |
Flow Graph Nodes | GamePlatform:Account:GetLocalAccount |
Schematyc Nodes | Function::GamePlatform::Service::Accounts::GetLocalAccount |
Requests user information (nickname, avatar) from the remote server for the specified account on the specified platform.
Platform(s) | Steam |
---|---|
API | Cry::GamePlatform::IService::RequestUserInformation |
Flow Graph Nodes | GamePlatform:Account:RequestUserInfo |
Schematyc Nodes | Function::GamePlatform::Service::Accounts::RequestUserInformation |
Fired when an account is added to the internal registry (for example, when a friend was added to the local account).
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::IListener::OnAccountAdded |
Flow Graph Nodes | GamePlatform:Listener:Account:OnAccountAdded |
Schematyc Nodes | Signal::Receive::[EntityName]::Accounts::PlatformSignalReceiver::Accounts::OnAccountAdded |
Fired when an account is removed (a friend was removed, for example).
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::IListener::OnAccountRemoved |
Flow Graph Nodes | GamePlatform:Listener:Account:OnAccountRemoved |
Schematyc Nodes | Signal::Receive::[EntityName]::Accounts::PlatformSignalReceiver::Accounts::OnAccountRemoved |
Fired when the platform service has provided a requested avatar image.
Platform(s) | Discord, Steam |
---|---|
API | Cry::GamePlatform::IService::IListener::OnAvatarImageLoaded |
Flow Graph Nodes | GamePlatform:Listener:Account:OnAvatarImageLoaded |
Schematyc Nodes | Signal::Receive::[EntityName]::Accounts::PlatformSignalReceiver::Accounts::OnAvatarImageLoaded |
Fired when a user's persona data (name, friend/blocked status, permissions such as can send messages/invitations, voice chat, etc.) has changed.
Platform(s) | Steam |
---|---|
API | Cry::GamePlatform::IService::IListener::OnPersonaStateChanged |
Flow Graph Nodes | GamePlatform:Listener:Account:OnPersonaStateChanged |
Schematyc Nodes | Signal::Receive::[EntityName]::Accounts::PlatformSignalReceiver::Accounts::OnPersonaStateChanged |