checkVisibility: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (mistagged 1.56, it's 1.58)
(changed version, command was added september 2015)
Line 4: Line 4:
|arma3|= Game name
|arma3|= Game name


|1.58|= Game version
|1.56|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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. |= 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. Particle effects such as smoke can also affect the results. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:56, 3 April 2016

Hover & click on the images for description

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. Particle effects such as smoke can also affect the results.
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


Bottom Section