Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
GameKit.LocalPlayer
Retrieves the shared instance of the local player.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
GameKit | 8.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "GameKit.LocalPlayer" )
Parameters
none
Result
Returns player identifier or error.
Description
Retrieves the shared instance of the local player.You never directly create a local player object. Instead, you retrieve the Singleton object by calling this function.
Identifier changes when authenticated, but the plugin can always use local player if you pass "localplayer" as player identifier.
See also
- GameKit.Initialize
- GameKit.LoadPlayers
- GameKit.LocalPlayer.Authenticate
- GameKit.LocalPlayer.AuthenticateError
- GameKit.LocalPlayer.ClearAuthenticateHandler
- GameKit.LocalPlayer.isAuthenticated
- GameKit.Score.Player
This function is free to use.
Created 5th November 2018, last changed 8th November 2018
GameKit.LoadReceivedChallenges - GameKit.LocalPlayer.Authenticate