Resource:Battlefield/getSquadShortn: Difference between revisions
Jump to navigation
Jump to search
LeetWoovie (talk | contribs) (Created page with 'This function retrieves the squad ID. The squad ID is simply a string representing the full squad name. The first letter of a squad name is the ID. It can be retrieved with the s…') |
m (→Syntax) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> string getSquadID ( team squadTeam, squad squadElement ) </syntaxhighlight> | ||
string getSquadID ( squad squadElement | =Required Arguments= | ||
</syntaxhighlight> | *'''squadTeam''': The team element the squad is attached to. if this is nil or false then it checks the second argument (squadElement). | ||
*'''squadElement''': The squad you want the ID/shortn from. | |||
[[Resource:battlefield]] |
Latest revision as of 04:39, 22 May 2012
This function retrieves the squad ID. The squad ID is simply a string representing the full squad name. The first letter of a squad name is the ID. It can be retrieved with the squad element.
Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel
Syntax
string getSquadID ( team squadTeam, squad squadElement )
Required Arguments
- squadTeam: The team element the squad is attached to. if this is nil or false then it checks the second argument (squadElement).
- squadElement: The squad you want the ID/shortn from.