Vn_ms_fnc_isNear

From Savage Game Design Wiki
Revision as of 23:15, 4 May 2022 by Slow (talk | contribs) (Created page with "{{Function |v= 1.00 |author=Wyqer, veteran29 |a= |e= |g1= general |d= <pre>Checks if most of the units or any unit (depending on params) (of given group or array) are insi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

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.

Syntax

Syntax
[] call vn_ms_fnc_isNear;
Parameters
_array: Array - (Optional, default []) Groups and/or units to check.
_center: Position - (Optional, default []) Center position or object.
_radius: Number - (Optional, default 15) Radius in which all units should be inside.
_any: Boolean - (Optional, default false) Check if any unit of group is in area.
_3D: Boolean - (Optional, default false) Check in 3D space.
Return value
Boolean - Are all (or any) given units inside given radius from given center

Examples

Example 1
[ [group1, group2], vn_co03_pilot, 5, true, true ] call vn_ms_fnc_isNear