OnTeamDisband
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTeamDisband( PlayerTeam teamToDisband )
{
Puts( "OnTeamDisband works!" );
}
Location
- RelationshipManager::DisbandTeam(RelationshipManager/PlayerTeam teamToDisband)
csharp
public void DisbandTeam(RelationshipManager.PlayerTeam teamToDisband)
{
if (Interface.CallHook("OnTeamDisband", teamToDisband) != null)
{
return;
}
this.teams.Remove(teamToDisband.teamID);
Pool.Free<RelationshipManager.PlayerTeam>(ref teamToDisband);
//---