End match

Forces the match to end. Optional arguments can be provided to supply placement of each player in the match. Any placements which are not provided will be calculated normally. Not providing any arguments in the event of a tie will trigger overtime in matches with an active timer. Not providing any arguments in the event of a tie while in practice mode or a match with unlimited time will cause the function to have no effect.

Syntax
end_match;

Returns
N/A

Basic
// article1_update.gml for a stage // ends the match as soon as a player touches the article, with the player who touched it automatically winning the match var touch = instance_place( x, y, oPlayer ); if touch != noone { end_match( touch.player ); }