fn vbs isVisible (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.22
Description
- Description:
- Finds out if a vehicle or position is visible from a specified position. It checks the visibility of the center and the eight boundingBox corners and can take exceptions into account. For positions the rate argument is obsolete, as those are either visible or not.
Syntax
- Syntax:
- [array, check, rate, except] call fn_vbs_isVisible
- Parameters:
- array: Array (PositionAGL format)
- check: Object or Array (PositionAGL format)
- rate: Number (optional) - Value between 0 and 1; the higher the value, the more edges of the boundingBox have to be visible for this function to return true, standard is 0.1.
- except: Array (optional) - Array with objects which are not taken into account as view blockers.
- Return Value:
- Boolean
Examples
- Example 1:
_isVisible = [position player, target,.2, [player]] call fn_vbs_isVisible
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- fn_vbs_getVisibility, getVisibility, collisionDetection

