Resource:Battlefield/getSquadTeam

From Multi Theft Auto: Wiki
Revision as of 04:45, 22 May 2012 by Jaysds (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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