OnTeamCreate
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTeamCreate( BasePlayer basePlayer )
{
Puts( "OnTeamCreate works!" );
}
Location
- RelationshipManager::trycreateteam(ConsoleSystem/Arg arg)
csharp
//---
BasePlayer basePlayer = arg.Player();
if (basePlayer.currentTeam != 0uL)
{
return;
}
if (Interface.CallHook("OnTeamCreate", basePlayer) != null)
{
return;
}
RelationshipManager.PlayerTeam playerTeam = RelationshipManager.ServerInstance.CreateTeam();
playerTeam.teamLeader = basePlayer.userID;
//---