Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
GameKit.ShowChallengeComposeDialog
Shows challenge compose dialog.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
GameKit | 8.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "GameKit.ShowChallengeComposeDialog"; scoreRef or AchievementRef; Message; playerIdentifiers { ; Filename; ScriptName } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
scoreRef or AchievementRef | The score or achievement identiifer. | ||
Message | The message text. | ||
playerIdentifiers | The list of player identifiers. | ||
Filename | The database file name where the script is located. | "test.fmp12" | Optional |
ScriptName | The script name. | "MyScript" | Optional |
Result
Returns OK or error.
Description
Shows challenge compose dialog.Provides a challenge compose view controller with pre-selected player identifiers and a pre-formatted, player-editable message.
Once dialog finishes, the given script is triggered and passed either didIssueChallenge or cancel as parameter.
This function is free to use.
Created 5th November 2018, last changed 8th November 2018