|Description:||Determines the visibility of an object from a specified position, and returns the ratio of visible boundingBox corners (if none are visible, 0 is returned, if all eight are visible, 1 is returned).|
|Syntax:||[position, object, except, terrain] call fn_vbs_getVisibility|
|Return Value:||Number - Visibility ratio.|
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Functions A-Z.
_isVisible = [position player, target, [player]] call fn_vbs_getVisibility
|See also:||fn vbs isVisible,getVisibility, collisionDetection|