Skip to content

OnTeamDisbanded

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnTeamDisbanded( PlayerTeam teamToDisband )
{
    Puts( "OnTeamDisbanded works!" );
}

Location

  • RelationshipManager::DisbandTeam(RelationshipManager/PlayerTeam teamToDisband)
csharp
//---
	if (Interface.CallHook("OnTeamDisband", teamToDisband) != null)
	{
		return;
	}
	this.teams.Remove(teamToDisband.teamID);
	Interface.CallHook("OnTeamDisbanded", teamToDisband);
	Pool.Free<RelationshipManager.PlayerTeam>(ref teamToDisband);
}

Released under the MIT License.