Skip to main content
Trigger actions when an entity sees a player.

Configuration

on_player_visibility_detection

Triggers when a player enters an entity’s line of sight.
entity
EntityInstanceEntry
The entity performing the detection.
Requires AnimationExtension or similar for active AI scanning.

Example

on_player_visibility_detection:
  actions:
    - message_action:
        message: "<red>You have been spotted!"