Skip to content

OnTeamCreated

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnTeamCreated( BasePlayer basePlayer, RelationshipManager relationshipManager )
{
    Puts( "OnTeamCreated works!" );
}

Location

  • RelationshipManager::trycreateteam(ConsoleSystem/Arg arg)
csharp
//---
	RelationshipManager.PlayerTeam OxideGen_2 = RelationshipManager.ServerInstance.CreateTeam();
	RelationshipManager.PlayerTeam playerTeam = OxideGen_2;
	playerTeam.teamLeader = basePlayer.userID;
	playerTeam.AddPlayer(basePlayer, false);
	Facepunch.Rust.Analytics.Azure.OnTeamChanged("created", playerTeam.teamID, basePlayer.userID, basePlayer.userID, playerTeam.members);
	Interface.CallHook("OnTeamCreated", basePlayer, OxideGen_2);
}

Released under the MIT License.