From Savage Game Design Wiki
Revision as of 12:47, 16 September 2019 by vn>Unknown user
Jump to navigation
Jump to search
Description
/*
Author: Wyqer, veteran29
Date: 2019-10-14
Last Update: 2020-12-05
Public: Yes
Description:
Checks if most of the units or any unit (depending on params) (of given group or array) are inside a given radius of given object/position.
Parameter(s):
_array - Groups and/or units to check [ARRAY, defaults to []]
_center - Center position or object [POSITION|OBJECT, defaults to []]
_radius - Radius in which all units should be inside [NUMBER, defaults to 15]
_any - Check if any unit of group is in area [BOOL, defaults to false]
_3D - Check in 3D space [BOOL, defaults to false]
Example(s):
[[group1, group2], vn_co03_pilot, 5, true, true] call vn_ms_fnc_isNear
Returns:
Are all (or any) given units inside given radius from given center [BOOL]
*/
(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)
Syntax
- Syntax
- [] call vn_ms_fnc_isNear;
- Return value
- Nothing
Examples
- Example 1
-