Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

addMatchScore

addMatchScore(authority, match, points, options?): boolean

Adds points, which may be below zero, to match’s score while it plays: with no options a co-op match’s shared score; with { player } a member’s own, which counts for the member’s side; with { team } one side’s, as a volleyball rally scores. Returns whether it scored: false outside Playing. The wrong branch for the match, a player who holds no slot in it, or a team it does not name, throws in development and returns false in a deployed world. As Unreal’s PlayerState score.

Parameter Type
authority Authority
match MatchEntity
points number
options? AddMatchScoreOptions

boolean