Filter Actors By Line Of Sight

Callable
FilterActorsByLOS

Filters an array of actors into those visible and those hidden from a point.

Type: Callable (has execution pins)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities

Inputs

NameTypeDefaultDescription
WorldContextUObject*WorldContext parameter
OriginFVectorOrigin parameter
ActorsTArray<AActor*>Actors parameter
TraceChannelECollisionChannelVisibilityTraceChannel parameter

Outputs

NameTypeDescription
VisibleActorsTArray<AActor*>VisibleActors output
HiddenActorsTArray<AActor*>HiddenActors output

Example Use Cases

Example 1

AI determining which enemies it can currently see.

Example 2

Highlight only visible interactables for the player.