checkVisibility
Jump to navigation
Jump to search
Description
- Description:
- Checks if one position is visible from another position and how much. The results can be affected by getTerrainGrid value, especially if position is near the ground.
- Groups:
- Uncategorised
Syntax
- Syntax:
- [ignore, LOD] checkVisibility [beg, end]
- Parameters:
- [ignore, LOD]: Array
- ignore: Object - object to exclude from calculations
- LOD: String - level of details to use. Possible values are: "FIRE", "VIEW", "GEOM", "IFIRE"
- [beg, end]: Array
- beg: Array - start position in format PositionASL
- end: Array - end position in format PositionASL
- Return Value:
- Number - how much end position is visible to start position in range 0..1, where 1 is fully visible.
Examples
- Example 1:
_cansee = [objNull, "VIEW"] checkVisibility [eyePos player, eyePos unit1];
Additional Information
- See also:
- lineIntersectsWithlineIntersectsSurfaceslineIntersectsObjsintersectterrainIntersectterrainIntersectASLlineIntersectscursorObjectcursorTarget
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes