# How to trigger an event in Character blueprint from AI controller blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-trigger-an-event-in-character-blueprint-from-ai-controller-blueprint/1315524>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [September 28, 2023, 2:56pm UTC](https://forums.unrealengine.com/t/how-to-trigger-an-event-in-character-blueprint-from-ai-controller-blueprint/1315524 "2023-09-28T14:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 28, 2023, 3:20pm UTC](https://forums.unrealengine.com/t/how-to-trigger-an-event-in-character-blueprint-from-ai-controller-blueprint/1315524/2 "2023-09-28T15:20:37Z")

</div>

> [@vizorsnix](#):
>
> I’m trying now to make the AI run when they see the player

Would this work for you:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/d/0eda1ffb4efa75f2a7ef8816cf5b1f7e48cf6d4b.png)

The above gives you the pawn that triggered it and an instigator (in case you can make noise elsewhere - throw a lure or something). Pawns can’t hear if they can see you, btw. Here’s a crude example:

> [@AI Character move away from pawn but stop after some distance.](https://forums.unrealengine.com/t/ai-character-move-away-from-pawn-but-stop-after-some-distance/786232/2):
>
> Hard to recommend anything specific since we don’t know how you’re doing things atm. Perhaps you could take advantage of Pawn Sensing, If the AI detects Player Pawn, they run away in the opposite direction: You get to control some params here. If no Pawn is detected, the AI can return to whatever other routine you set up. You could use a sphere overlap on the player pawn to send the AI away in a very similar way instead of the Pawn Sensing comp.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-trigger-an-event-in-character-blueprint-from-ai-controller-blueprint/1315524)._
