# Sandbox.Npcs.BaseNpc.GetRelationship

```csharp
Relationship GetRelationship(GameObject other)
```

The full relationship (disposition + priority) this NPC has toward another entity.
Per-entity overrides win, then the faction relationship, then [Sandbox.Npcs.BaseNpc.GetFallbackRelationship](/api/Sandbox.Npcs.BaseNpc/GetFallbackRelationship). Override this for
fully dynamic relationships.

### Parameters

- `other` (`GameObject`)

### Returns

`Relationship`

Declared in [Sandbox.Npcs.BaseNpc](/api/Sandbox.Npcs.BaseNpc).
Assembly: `Sandbox.Engine`.
