Skip to content

OnTeamRejectInvite

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • RelationshipManager::rejectinvite(ConsoleSystem/Arg arg)
csharp
//---
	if (playerTeam == null)
	{
		basePlayer.ClearPendingInvite();
		return;
	}
	if (Interface.CallHook("OnTeamRejectInvite", basePlayer, playerTeam) != null)
	{
		return;
	}
	playerTeam.RejectInvite(basePlayer);
}

Released under the MIT License.