Sort Actors By Distance
CallableSortActorsByDistanceSorts an array of actors by distance from a reference point, nearest first.
Type: Callable (has execution pins)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Actors | Actor Array | — | Actors parameter |
| ReferencePoint | Vector | — | ReferencePoint parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| OutSortedActors | Actor Array | OutSortedActors output |
Example Use Cases
Example 1
Sort all nearby enemies to find the closest chain-lightning target.