OnTeamUpdated
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTeamUpdated( ulong currentTeam, PlayerTeam playerTeam2, BasePlayer instance )
{
Puts( "OnTeamUpdated works!" );
}
Location
- BasePlayer::TeamUpdate(bool fullTeamUpdate)
csharp
//---
foreach (MapNote current2 in playerState.pointsOfInterest)
{
playerTeam2.leaderMapNotes.Add(current2);
}
}
if (Interface.CallHook("OnTeamUpdated", this.currentTeam, playerTeam2, this) != null)
{
return;
}
base.ClientRPC<PlayerTeam>(RpcTarget.PlayerAndSpectators("CLIENT_ReceiveTeamInfo", this), playerTeam2);
if (playerTeam2.leaderMapNotes != null)
//---