CAM IS SPHERE VISIBLE

From GTAMods Wiki
Revision as of 20:43, 7 September 2011 by ThaCURSEDpie (talk | contribs) (Start)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
CAM_IS_SPHERE_VISIBLE
Number of parameters: 5
Parameter #TypeDescription
1.intCamera Id
2.floatSphere centre X-Coordinate
3.floatSphere centre Y-Coordinate
4.floatSphere centre Z-Coordinate
5.floatSphere radius
Return value:
TypeDescription
int0: can not be seen. 1: can be seen

The function checks if the specified camera has a clear line-of-sight towards the specified sphere.

Environment (walls, buildings, ground) blocks the line of sight. Because the function has not been fully tested it is not known if objects, peds and vehicles block the line of sight.