Vn_ms_fnc_isNear

From Savage Game Design Wiki
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