Difference between revisions of "VN ms fnc tracker positionVisible"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function" to "Category:TODO {{Function") |
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
||
Line 44: | Line 44: | ||
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small> | </pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small> | ||
− | |s= [] call [[vn_ms_fnc_tracker_positionVisible]] | + | |s= [] call [[vn_ms_fnc_tracker_positionVisible]] |
|p1n= | |p1n= |
Revision as of 21:21, 20 January 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
/* Author: Wyqer, veteran29 Date: 2019-07-31 Description: Checks if position is visible for any of unit in group. Parameter(s): _targets - Units to check visibility for [ARRAY, defaults to []] _position - Positon ASL to check [ARRAY, defaults to [0,0,0]] Returns: Function reached the end [BOOL] */ params [ ["_targets", [], [[]]], ["_position", [0,0,0], [[]], [2,3]] ]; // to handle positions 2D from "selectBestPlaces" if (count _position == 2) then { // 1m above ground converted to ASL _position pushBack 1; _position = AGLToASL _position; }; // check if there is any unit that can see the position _targets findIf { [objNull, "VIEW"] checkVisibility [eyePos _x, _position] != 0; } != -1(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)
Syntax
- Syntax
- [] call vn_ms_fnc_tracker_positionVisible
- Return value
- Nothing
Examples
- Example 1
-