Description
Returns True if a player's current aim direction falls within a specified angular tolerance of a given world position. A convenience wrapper around crosshair and direction math, useful for gaze-detection triggers and interactive world elements.
Snippet
Is Player Looking At Position(Event Player, Vector(0, 5, 0), 10);
Properties
Returns: Boolean
Parameters: Player, Position, Tolerance Angle
Player
Type: Player, Default: Event Player
The player whose aim direction will be evaluated.Position
Type: Vector, Default: Vector(0, 0, 0)
The world position to check against the player's aim.Tolerance Angle
Type: Number, Default: 10
The maximum angle in degrees between the player's aim and the position for the value to return True.