ScarDoc

Start typing to search the SCAR reference.

Function
Core

Core_AddPlayerToTeam

Has a player join a specific team

On this page
Core_AddPlayerToTeam(player, teams_table)

Description

Will remove the player from his previous team. If you pass in nil for newTeam, will add to a new empty team

Parameters

  • playerPlayerIDrequired
  • teams_tableTeamrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/core.scar