Resource:Battlefield/setPlayerSquad: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "==Purpose== This function sets the player squad. ==Syntax== <syntaxhighlight lang="lua"> bool setPlayerSquad(player thePlayer, squad squadTeam) </syntaxhighlight> =Required Arguments= '''thePlayer''': The...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
<syntaxhighlight lang="lua"> bool setPlayerSquad(player thePlayer, squad squadTeam) </syntaxhighlight>
<syntaxhighlight lang="lua"> bool setPlayerSquad(player thePlayer, squad squadTeam) </syntaxhighlight>
=Required Arguments=
=Required Arguments=
'''thePlayer''': The player you wish to add to a squad.
*'''thePlayer''': The player you wish to add to a squad.
'''squadTeam''': The squad you want the player to be added to.
*'''squadTeam''': The squad you want the player to be added to.
 
=Returns=
=Returns=
Returns true if the player was successfully added to the squad, else false.
Returns true if the player was successfully added to the squad, else false.
{| width="100%" style="text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;"
| [[Resource:Battlefield|Return to Battlefield Resource]]
|}

Latest revision as of 04:14, 22 May 2012

Purpose

This function sets the player squad.

Syntax

 bool setPlayerSquad(player thePlayer, squad squadTeam) 

Required Arguments

  • thePlayer: The player you wish to add to a squad.
  • squadTeam: The squad you want the player to be added to.

Returns

Returns true if the player was successfully added to the squad, else false.

Return to Battlefield Resource