CanSetRelationship
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanSetRelationship( BasePlayer player, BasePlayer otherPlayer, RelationshipType type, int weight )
{
Puts( "CanSetRelationship works!" );
}
Location
- RelationshipManager::SetRelationship(BasePlayer player, BasePlayer otherPlayer, RelationshipManager/RelationshipType type, int weight, bool sendImmediate)
csharp
//---
}
if (otherPlayer != null && otherPlayer.IsNpc)
{
return;
}
if (Interface.CallHook("CanSetRelationship", player, otherPlayer, type, weight) != null)
{
return;
}
RelationshipManager.PlayerRelationships playerRelationships = this.GetRelationships(num);
if (!this.CleanupOldContacts(playerRelationships, num, RelationshipManager.RelationshipType.Acquaintance))
//---