Resource:Battlefield/getSquadTeam

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function retrieves a squad element's team.

Syntax

team getSquadTeam ( squad squadElement )

Required Argument

  • squadElement: The squad you want to retrieve the team from.

Source Code

function getSquadTeam(squadElement)
	if(squadElement)then
		team = getElementData(squadElement,"team")
		return team
	else
		return false
	end
end


Resource:Battlefield