OnTeamAcceptInvite
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTeamAcceptInvite( PlayerTeam playerTeam, BasePlayer basePlayer )
{
Puts( "OnTeamAcceptInvite works!" );
}
Location
- RelationshipManager::acceptinvite(ConsoleSystem/Arg arg)
csharp
//---
if (playerTeam == null)
{
basePlayer.ClearPendingInvite();
return;
}
if (Interface.CallHook("OnTeamAcceptInvite", playerTeam, basePlayer) != null)
{
return;
}
playerTeam.AcceptInvite(basePlayer);
}