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

Get Squad

Battlefield 6 Scripting Docs


Battlefield 6 Scripting Docs / mod / mod / GetSquad

Function: GetSquad()

Call Signature

function GetSquad(player): Squad;

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

Returns the squad object corresponding to the provided player, or team/squad id.

Parameters

Parameter Type
player Player

Returns

Squad

Call Signature

function GetSquad(teamIdNumber, squadIdNumber): Squad;

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

Returns the squad object corresponding to the provided player, or team/squad id.

Parameters

Parameter Type
teamIdNumber number
squadIdNumber number

Returns

Squad