Dota 2 Workshop Tools/Scripting/API/Global.FindUnitsInRadius: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
(Dota_Lebot push: Updated Page)
Line 6: Line 6:




''' table FindUnitsInRadius(int ''a'', Vector ''b'', handle ''c'', float ''d'', int ''e'', int ''f'', int ''g'', int ''h'', bool ''i'') '''
''' table FindUnitsInRadius(int ''teamNumber'', Vector ''position'', handle ''cacheUnit'', float ''radius'', int ''teamFilter'', int ''typeFilter'', int ''flagFilter'', int ''order'', bool ''canGrowCache'') '''


''Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )''
''Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )''
Line 12: Line 12:




;Example
<source lang="lua">
http://hastebin.com/pokelabayi.lua
</source>
== Parameters ==
== Parameters ==
{| class="standard-table" style="width: 50%;"
{| class="standard-table" style="width: 50%;"
Line 19: Line 23:
|-
|-
| int
| int
| a
| teamNumber
| No Description Set
| No Description Set
|-
|-
| Vector
| Vector
| b
| position
| No Description Set
| No Description Set
|-
|-
| handle
| handle
| c
| cacheUnit
| No Description Set
| No Description Set
|-
|-
| float
| float
| d
| radius
| No Description Set
| No Description Set
|-
|-
| int
| int
| e
| teamFilter
| No Description Set
| No Description Set
|-
|-
| int
| int
| f
| typeFilter
| No Description Set
| No Description Set
|-
|-
| int
| int
| g
| flagFilter
| No Description Set
| No Description Set
|-
|-
| int
| int
| h
| order
| No Description Set
| No Description Set
|-
|-
| bool
| bool
| i
| canGrowCache
| No Description Set
| No Description Set
|}
|}

Revision as of 05:32, 18 August 2014

Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

table FindUnitsInRadius(int teamNumber, Vector position, handle cacheUnit, float radius, int teamFilter, int typeFilter, int flagFilter, int order, bool canGrowCache)

Finds the units in a given radius with the given flags. ( iTeamNumber, vPosition, hCacheUnit, flRadius, iTeamFilter, iTypeFilter, iFlagFilter, iOrder, bCanGrowCache )


Example
http://hastebin.com/pokelabayi.lua

Parameters

Type Name Description
int teamNumber No Description Set
Vector position No Description Set
handle cacheUnit No Description Set
float radius No Description Set
int teamFilter No Description Set
int typeFilter No Description Set
int flagFilter No Description Set
int order No Description Set
bool canGrowCache No Description Set

Returns

table - No Description Set