Resource:Battlefield/createSquad

From Multi Theft Auto: Wiki
Revision as of 14:33, 22 April 2010 by LeetWoovie (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Creates a squad element. Click here to read more about squads.

Syntax

squad createSquad ( team squadTeam, string shortName )

Required Arguments

  • squadTeam: The team element the squad will be attached to.
  • shortName: The shortname for the squad.

Returns

Returns the squad element if it was created, otherwise false.

Function Source

function createSquad ( team, shortn )
	squad = createElement ( "squad", team, shortn )
	if squad then
		return squad
	else
		return false
	end
end


Return to Battlefield Resource