util.PixelVisible
Description
Returns the visibility of a sphere in the world.
Arguments
3 pixelvis_handle_t PixVis
The PixVis handle created with util.GetPixelVisibleHandle.
Don't use the same handle twice per tick or it will give unpredictable results.
Returns
1 number
Visibility, ranges from
0-1
. 0
when none of the area is visible, 1
when all of it is visible.Example
Draws a box when the center of the map is visible on your screen.