Difference between revisions of "VN ms fnc isNear"
Jump to navigation
Jump to search
vn>Unknown user m (Generated by LM_exportFunctionsToWiki.sqf) |
Lou Montana (talk | contribs) (Page filling) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Wyqer, veteran29 |
+ | |||
+ | |a= global | ||
|e= | |e= | ||
Line 10: | Line 11: | ||
|g1= general | |g1= general | ||
− | |d= | + | |d= Checks if most (> 50%) or any (at least 1) of the units are inside a given radius from a given object/position. |
− | |||
− | |||
− | |||
− | |||
− | + | |s= [groupsAndUnits, centre, radius, any, distance3D] call [[VN_ms_fnc_isNear]] | |
− | |||
− | + | |p1n= groupsAndUnits | |
− | + | |p1t= {{Biki|Object}}, {{Biki|Group}}, {{Biki|Array}} of {{Biki|Object}} and/or {{Biki|Group}} | |
− | + | |p1d= array of groups and/or units | |
− | + | |p1v= | |
− | |||
− | |||
− | + | |p2n= centre | |
− | + | |p2t= {{Biki|Array}} format {{Biki|Position}} or {{Biki|Object}} | |
− | + | |p2d= the expected destination | |
− | + | |p2v= | |
− | |||
− | |||
− | |||
− | |||
− | | | + | |p3n= radius |
+ | |p3t= number | ||
+ | |p3d= distance to check | ||
+ | |p3v= 15 | ||
− | | | + | |p4n= any |
− | | | + | |p4t= boolean |
− | | | + | |p4d= check if ''any'' unit is close |
− | | | + | |p4v= false |
− | | | + | |p5n= distance3D |
− | | | + | |p5t= boolean |
− | | | + | |p5d= is the check done in 3D distance |
− | | | + | |p5v= false |
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= are all (or any) provided units inside given radius from given centre |
− | |x1= <code> | + | |x1= <code>[<nowiki/>[player, groupBravo], getMarkerPos "destination", 5, true, true] call [[VN_ms_fnc_isNear]];</code> |
}} | }} |
Latest revision as of 17:37, 22 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Checks if most (> 50%) or any (at least 1) of the units are inside a given radius from a given object/position.
Syntax
- Syntax
- [groupsAndUnits, centre, radius, any, distance3D] call VN_ms_fnc_isNear
- Parameters
- groupsAndUnits: Object, Group, Array of Object and/or Group - array of groups and/or units
- centre: Array format Position or Object - the expected destination
- radius: Number - (Optional, default
15
) distance to check - any: Boolean - (Optional, default
false
) check if any unit is close - distance3D: Boolean - (Optional, default
false
) is the check done in 3D distance - Return value
- Boolean - are all (or any) provided units inside given radius from given centre
Examples
- Example 1
[[player, groupBravo], getMarkerPos "destination", 5, true, true] call VN_ms_fnc_isNear;