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

resetMatch

resetMatch(authority, match): boolean

Resets match for its next contest, in the step: it destroys every entity it owns, a ball in flight among them, spawns its court anew as it recorded it, and clears its score, clock, results and votes; its matchNumber rises by one and MatchResetEvent tells its pages. Its members stay, each character stood on the member’s side’s points with its velocity stopped. A queue-less match with no delayedStart starts again; any other waits. A <Match> prop that changed meanwhile applies now. The entity the match lives on keeps its own traits: a game resets them on MatchResetEvent. Returns whether it reset. As Unreal’s ResetLevel, with no level load.

Parameter Type
authority Authority
match MatchEntity

boolean