AI Perception attachment

Use this code instead as yours uses the wrong quotation marks due to the Epic forum migration:

void ABaseCharacter::GetActorEyesViewPoint(FVector& Location, FRotator& Rotation) const
{
    Location = GetMesh()->GetSocketLocation("head");

    Rotation = GetActorRotation();
    Rotation.Yaw -= GetMesh()->GetSocketTransform("head", RTS_ParentBoneSpace).Rotator().Roll;
}
1 Like