# Is it possible to bind to an event with a lambda (and capture context)?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-bind-to-an-event-with-a-lambda-and-capture-context/373187>\
**Category:** C++\
**Tags:** unreal-engine, UE4, question, CPP\
**Created:** [October 13, 2016, 3:51am UTC](https://forums.unrealengine.com/t/is-it-possible-to-bind-to-an-event-with-a-lambda-and-capture-context/373187 "2016-10-13T03:51:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [October 13, 2016, 3:51am UTC](https://forums.unrealengine.com/t/is-it-possible-to-bind-to-an-event-with-a-lambda-and-capture-context/373187/1 "2016-10-13T03:51:08Z")

</div>

Is it possible to bind a lambda to an event similar to this:

```
someActor.OnDestoroy.Add([&](){DoStuff(SomeClassPorperty);});
```
