Difference between revisions of "VN ms fnc isNear"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |e=" to " |a= |e=")
m (Text replacement - " {{Function" to "Category:TODO {{Function")
Line 1: Line 1:
 
+
[[Category:TODO]]
 
{{Function
 
{{Function
  

Revision as of 22:35, 5 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

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
-