# Do something when event ends?

**URL:** <https://forums.unrealengine.com/t/do-something-when-event-ends/300870>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 7, 2014, 4:17pm UTC](https://forums.unrealengine.com/t/do-something-when-event-ends/300870 "2014-12-07T16:17:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3c4ed803](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3c4ed803](https://forums.unrealengine.com/u/anonymous_user_3c4ed803)\
**Post date:** [December 7, 2014, 4:17pm UTC](https://forums.unrealengine.com/t/do-something-when-event-ends/300870/1 "2014-12-07T16:17:18Z")

</div>

As you can see in the image below; I have a simple OnSeePawn even which is triggered when an AI controller sees the player. But how do I make him “unsee” the player? Or rather, I want to do something when he stops seeing me.

So for example, if I go behind a wall the OnSeePawn event will stop and that’s when I want something else to be triggered?

 ![23231-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/8/228599e8528e98f3c2066a5a0b6692833a987d82.jpeg)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [December 7, 2014, 4:51pm UTC](https://forums.unrealengine.com/t/do-something-when-event-ends/300870/2 "2014-12-07T16:51:10Z")

</div>

In UE4 Event is a Function just cosmetically diffrent, so it’s not something that starts and begin, it’s just called once on event as any other function. So there need to be 2 events for start and stop (like overlap event) has… problem is PawnSensingComponent don’t have stop event like that, you would need to implement such event in C++ by extending that component, i guess it’s good feature request. You could also code ytou own pawn sesning colution on blueprint, but use timers insted of tick as it’s might be too heavy

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3c4ed803](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3c4ed803](https://forums.unrealengine.com/u/anonymous_user_3c4ed803)\
**Post date:** [December 10, 2014, 4:51pm UTC](https://forums.unrealengine.com/t/do-something-when-event-ends/300870/3 "2014-12-10T16:51:03Z")

</div>

Oh I see, that’s really disappointing. Is there no way to get around that with blueprints and behavior trees?

I’ll post it as a feature request for now then at least.
