# Is it possible to add multiple Sight Configs to one Perception Component in C++?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-add-multiple-sight-configs-to-one-perception-component-in-c/421315>\
**Category:** AI\
**Tags:** Perception, sight, unreal-engine, CPP, question\
**Created:** [March 30, 2018, 10:18am UTC](https://forums.unrealengine.com/t/is-it-possible-to-add-multiple-sight-configs-to-one-perception-component-in-c/421315 "2018-03-30T10:18:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muirey03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Muirey03](https://forums.unrealengine.com/u/Muirey03)\
**Post date:** [March 30, 2018, 10:18am UTC](https://forums.unrealengine.com/t/is-it-possible-to-add-multiple-sight-configs-to-one-perception-component-in-c/421315/1 "2018-03-30T10:18:10Z")

</div>

How can I add multiple sight configs to one perception component in c++? Whenever I add a second sight config, it just replaces the first one. How can I add more than one?

---

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [July 24, 2018, 9:56pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-add-multiple-sight-configs-to-one-perception-component-in-c/421315/2 "2018-07-24T21:56:56Z")

</div>

I’m trying to figure out a similar problem. So far all I’ve seen is this:

> **[AI Perception - more sight sources on one actor](https://forums.unrealengine.com/questions/533864/ai-perception-more-sight-sources-on-one-actor.html)**
>
> How can I add more AI Perception sources for sight sense for one actor? I've faced the problem, that actor's pivot hides underground, so enemies don't see him. I would also like to have more then only one sense source on the other parts of my...

Basically I think you can change how many traces your doing by overriding this function “virtual bool CanBeSeenFrom(const FVector& ObserverLocation, FVector& OutSeenLocation, int32& NumberOfLoSChecksPerformed, float& OutSightStrength, const AActor\* IgnoreActor = NULL)” by adding “IAISightTargetInterface” to your actor.

But I don’t fully understand it.
