Get Closest Actor Of Class
CallableGetClosestActorOfClassFinds the closest actor of a specified class to a given point.
Type: Callable (has execution pins)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| WorldContext | UObject* | — | WorldContext parameter |
| Origin | FVector | — | Origin parameter |
| ActorClass | TSubclassOf<AActor> | — | ActorClass parameter |
| SearchRadius | float | 0 for infinite | SearchRadius parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | AActor* | ReturnValue output |
| Distance | float | Distance output |
Example Use Cases
Example 1
Target the nearest enemy.
Example 2
Find the closest health pickup.