# Sandbox.Npcs.Layers.SensesLayer.FindBestTarget

```csharp
GameObject FindBestTarget()
```

Find the visible hostile this NPC should engage first: highest relationship priority,
nearest breaking ties.

### Returns

`GameObject`

Declared in [Sandbox.Npcs.Layers.SensesLayer](/api/Sandbox.Npcs.Layers.SensesLayer).
Assembly: `Sandbox.Engine`.
