Description
Restricts a player's field of view to a cone of a given angle, causing anything outside the cone to be obscured by a customizable fog color. Useful for stealth game modes, horror maps, or penalty mechanics. The cone is always centered on the player's current facing direction.
Snippet
Set Vision Cone(Event Player, 60, Color(Black), True);
Properties
Returns: Void
Parameters: Player, Angle, Obscure Color, Affect Minimap
Player
Type: Player, Default: Event Player
The player whose vision will be restricted.Angle
Type: Number, Default: 90
The total angular width of the visible cone in degrees. 360 disables the restriction entirely.Obscure Color
Type: Color, Default: Black
The color used to fill the obscured area outside the cone.Affect Minimap
Type: Boolean, Default: False
If True, the minimap is also restricted to the visible cone angle.