Skip to content

OnTeamCreated

Usage

  • No return behavior

Example Autogenerated

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

Location

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

Released under the MIT License.