Skip to main content
Portal Documentation
Discord GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

End Game Mode

Battlefield 6 Scripting Docs


Battlefield 6 Scripting Docs / mod / mod / EndGameMode

Function: EndGameMode()

Call Signature

function EndGameMode(player): void;

Defined in: mod/index.d.ts:20368

Ends the current gamemode and designates the provided Player or Team as the winner. The gamemode ends in draw if Team is set to 0.

Parameters

Parameter Type
player Player

Returns

void

Call Signature

function EndGameMode(team): void;

Defined in: mod/index.d.ts:20371

Ends the current gamemode and designates the provided Player or Team as the winner. The gamemode ends in draw if Team is set to 0.

Parameters

Parameter Type
team Team

Returns

void