# Ai Perception Component - Clients only logic

**URL:** <https://forums.unrealengine.com/t/ai-perception-component-clients-only-logic/360498>\
**Category:** AI\
**Tags:** client-replication, shipping-build, unreal-engine, editor, question, CPP\
**Created:** [June 12, 2016, 8:05am UTC](https://forums.unrealengine.com/t/ai-perception-component-clients-only-logic/360498 "2016-06-12T08:05:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lab-one](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lab-one/32/780274_2.png) [@lab-one](https://forums.unrealengine.com/u/lab-one)\
**Post date:** [June 12, 2016, 8:05am UTC](https://forums.unrealengine.com/t/ai-perception-component-clients-only-logic/360498/1 "2016-06-12T08:05:03Z")

</div>

Hi all.  
I am trying to implement client only vision system to get notification on Autonomous\_proxy about current visible enemies.  
So I’ve implement AI perception component from this tutorial

> **[How to setup AI Perception](https://forums.unrealengine.com/questions/211421/how-to-setup-ai-perception.html)**
>
> So I know that there are a couple of tutorials coming up on how to use the new AI Perception System. I can’t wait to really dig in and start using it, but seeing as those aren’t out yet (any idea when one will be up?) I was wondering if anyone knows...

And it works as expected in editor. But after I build standalone version it looks like I didnt receive Broadcast from OnPerception Updated

This is how I subscrive in  
**AMyCharacter::BeginPlay()** function

```
void AMyCharacter::EnablePerception()
{
	if(!IsLocallyControlled())
		return;
	
	LOG_NETWORK(Role, "Enable perception") // my own macros to logging
    PerceptionComponent->OnPerceptionUpdated.AddDynamic(this, &AMyCharacter::OnUpdateVision);
}

```

So, in editor this works as expected: I am calling OnUpdateVision every time Perception Updates on Autonomous Proxy only. But  
In standalone version it does nothing; I dont receive any call if OnUpdateVision.

---

<div class="post-metadata">

**Author:** ![lab-one](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lab-one/32/780274_2.png) [@lab-one](https://forums.unrealengine.com/u/lab-one)\
**Post date:** [June 22, 2016, 7:39pm UTC](https://forums.unrealengine.com/t/ai-perception-component-clients-only-logic/360498/2 "2016-06-22T19:39:48Z")

</div>

I have implement my own less efficient perception by linetracing for this task.
