Static function
Moderate
Server.GetActorsInRadius
Returns the actors within the specified radius
Syntax
Server.GetActorsInRadius(location, radius, only_classes = [], dimension = 0)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
location
|
Vector | — | The center location of the search |
radius
|
number | — | The search radius |
only_classes
optional
|
string[] | [] |
Only actors of these classes will be returned (pass empty for all classes) |
dimension
optional
|
integer | 0 |
The dimension to search in (pass 0 for all dimensions) |
Returns
- Actor[] The actors found in radius