Description
Whether a location is within view of a player.
Unaffected by map geometry/line of sight.
The angle is calculated from the players feet and not their eye position.
Equivalent code using Angle Between Vectors
:
Angle Between Vectors(
Direction Towards (Position Of (PLAYER), LOCATION),
Facing Direction Of (PLAYER)) <= VIEW ANGLE
Return
bool
Arguments
Name: PLAYER
Description: The player whose view to use for the check.
Type: Player
Default: EVENT PLAYERName: LOCATION
Description: The location to test if it's within view.
Type: Position
Default: VECTORName: VIEW ANGLE
Description: The view angle to compare against in degrees.
Type: float
Default: NUMBER