> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# NPC Visibility

> Checks if the NPC is visible to the player.

The `btcmob_npc_visibility_fact` returns `1` if the NPC is visible to the player, `0` otherwise.

## Configuration

<ResponseField name="btcmob_npc_visibility_fact" type="Map" required>
  Configuration for the fact.

  <Expandable title="Properties">
    <ResponseField name="npc" type="String">
      Optional NPC ID. Resolves current context if omitted.
    </ResponseField>
  </Expandable>
</ResponseField>
