nearSupplies: Difference between revisions
No edit summary |
Killzone Kid (talk | contribs) (description) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Find supplies in the circle with given radius. | | Find supplies (weapon holders and ammo crates) in the circle with given radius. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | origin '''nearSupplies''' radius |= Syntax | ||
|p1= | |p1= origin: [[Object]] or [[Position]]. In case of position, z is taken into consideration when search is conducted by radius |= PARAMETER1 | ||
|p2= | |p2= radius: [[Number]] |= PARAMETER2 | ||
| | | [[Array]] - array of [[Object]]s |= RETURNVALUE | ||
|x1= <code>_list = [[player]] [[nearSupplies]] 50;</code>|= EXAMPLE1 | |||
|x1= <code>_list = | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
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}}}}]] | ||
Revision as of 19:44, 30 August 2014
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