Skip to content

OnTeamCreated

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnTeamCreated( BasePlayer player, RelationshipManager.PlayerTeam playerTeam )
{
    Puts( "OnTeamCreated works!" );
}

Location

  • RelationshipManager::TryCreateTeam(BasePlayer player)
csharp
//---
	{
		PlayerTeam playerTeam = ServerInstance.CreateTeam();
		playerTeam.teamLeader = player.userID;
		playerTeam.AddPlayer(player);
		Facepunch.Rust.Analytics.Azure.OnTeamChanged("created", playerTeam.teamID, player.userID, player.userID, playerTeam.members);
		Interface.CallHook("OnTeamCreated", player, playerTeam);
	}
}

Released under the MIT License.