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
Snippet
Is In View Angle(Event Player, Vector(0, 0, 0), 0);
Properties
Returns: Boolean
Parameters: Player, Location, View Angle
Player
Type: Player, Default: Event Player
The player whose view to use for the check.Location
Type: Position, Default: Vector
The location to test if it's within view.View Angle
Type: Float, Default: Number
The view angle to compare against in degrees.