Is Actor Facing

Pure
IsActorFacing

Checks 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

NameTypeDefaultDescription
ActorAActor*Actor parameter
TargetLocationFVectorTargetLocation parameter
ToleranceDegreesfloat45ToleranceDegrees parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output
AngleToTargetfloatAngleToTarget output

Example Use Cases

Example 1

Only allow interaction when facing an NPC.

Example 2

Backstab detection (check if attacker is NOT being faced).