# Delegates quesion

**URL:** <https://forums.unrealengine.com/t/delegates-quesion/852372>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [April 5, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/delegates-quesion/852372 "2023-04-05T15:05:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.zahariev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@g.zahariev](https://forums.unrealengine.com/u/g.zahariev)\
**Post date:** [April 5, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/delegates-quesion/852372/1 "2023-04-05T15:05:36Z")

</div>

If I have a dog and person class. How can I create an event such that when the dog barks the person can subscribe to the event? Could be a very simple hello world example.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 5, 2023, 3:11pm UTC](https://forums.unrealengine.com/t/delegates-quesion/852372/2 "2023-04-05T15:11:06Z")

</div>

In the dog

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/d/98d3a58b8fb8c456e448fb505707e057f4240381.png)

in the person

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/9/bd9c4a84921713e0ecc09cf9713ee72eaad6469d.png)
