Is Actor Facing
PureIsActorFacingChecks if an actor is facing a target location within a tolerance angle.
Type: Pure (no side effects)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Actor | AActor* | — | Actor parameter |
| TargetLocation | FVector | — | TargetLocation parameter |
| ToleranceDegrees | float | 45 | ToleranceDegrees parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | bool | ReturnValue output |
| AngleToTarget | float | AngleToTarget output |
Example Use Cases
Example 1
Only allow interaction when facing an NPC.
Example 2
Backstab detection (check if attacker is NOT being faced).