Verse Library verse

04 Creating The Ui

Awards accumulated game points to a specific player by setting the score on a manager device and activating it.

extracted-snippets/documentation/en-us/fortnite/pizza-pursuit-4-managing-and-displaying-the-score-for-time-trial-in-verse/04-creating-the-ui.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/pizza-pursuit-4-managing-and-displaying-the-score-for-time-trial-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/pizza-pursuit-4-managing-and-displaying-the-score-for-time-trial-in-verse.md
# Section:    Creating the UI
<# Awards the score to the player with the Score Manager device, by activating it. #> AwardScore<public>() : void = ScoreManagerDevice.SetScoreAward(TotalGameScore) if (AwardedPlayer := MaybePlayer?):
ScoreManagerDevice.Activate(AwardedPlayer)

Comments

    Sign in to vote, comment, or suggest an edit. Sign in