nearSupplies: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Find supplies in the circle with given radius. If typeName is given, only supplies of given type (or its subtype) are listed.  |= Description
| Find supplies (weapon holders and ammo crates) in the circle with given radius. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| pos '''nearSupplies''' radius ''or'' [typeName, radius] |= Syntax
| origin '''nearSupplies''' radius |= Syntax


|p1= pos: [[Position]] |= PARAMETER1  
|p1= origin: [[Object]] or [[Position]]. In case of position, z is taken into consideration when search is conducted by radius |= PARAMETER1  


|p2= [typeName, radius]: [[Array]]  |= PARAMETER2  
|p2= radius: [[Number]]  |= PARAMETER2  


|p3= typeName: [[String]] |= PARAMETER3
| [[Array]] - array of [[Object]]s |= RETURNVALUE


|p4= radius: [[Number]]  |= PARAMETER4


| [[Array]] |= RETURNVALUE
|x1= <code>_list = [[player]] [[nearSupplies]] 50;</code>|= EXAMPLE1  
 
 
|x1= <code>_list = ([[position]] [[player]]) [[nearSupplies]] 50;</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 44: Line 40:
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{subst:Add new note/construct|
<!--
* Replace from here (including the arrow just above)
* Please add your note here, replacing these comments
* Please '''PREVIEW YOUR ADDITION BEFORE SAVING'''
* Thank you
* Equal symbols "=" should be added as "{{subst:=}}" (excluding quotes)
* Pipes "|" should be added as "{{subst:!}}" (excluding quotes)
* New lines should be forced by the use of "<br>" tags
* Examples should be placed between tags <code>_like {{subst:=}} [[_this]];</code>
* Replace to here (including the arrow just below)
Doesn't seem to work in (position player) nearSupplies [typeName,radius] version.
}}

Revision as of 19:44, 30 August 2014

Hover & click on the images for description

Description

Description:
Find supplies (weapon holders and ammo crates) in the circle with given radius.
Groups:
Uncategorised

Syntax

Syntax:
origin nearSupplies radius
Parameters:
origin: Object or Position. In case of position, z is taken into consideration when search is conducted by radius
radius: Number
Return Value:
Array - array of Objects

Examples

Example 1:
_list = player nearSupplies 50;

Additional Information

See also:
findNearestEnemynearestBuildingnearestObjectnearestObjectsnearObjectsnearestLocationnearEntitiesnearTargets, nearestLocationWithDubbingnearObjectsReadynearRoads

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section