# Events are broken?

**URL:** <https://forums.unrealengine.com/t/events-are-broken/459442>\
**Category:** C++\
**Tags:** event-dispatcher, unreal-engine, UE4, question, CPP\
**Created:** [December 12, 2019, 1:54pm UTC](https://forums.unrealengine.com/t/events-are-broken/459442 "2019-12-12T13:54:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbrizov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kbrizov/32/476596_2.png) [@kbrizov](https://forums.unrealengine.com/u/kbrizov)\
**Post date:** [December 12, 2019, 1:54pm UTC](https://forums.unrealengine.com/t/events-are-broken/459442/1 "2019-12-12T13:54:02Z")

</div>

Hello everyone,

The documentation on Events (Found here: [event documentation](https://docs.unrealengine.com/en-US/Programming/UnrealArchitecture/Delegates/Events/index.html)) says that they cannot be broadcasted out of events that do not own them. This is what is expected of events. For example, this is exactly how events in C# behave.

I have the following setup:

```
DECLARE_EVENT(ABaseCharacter, FDeathEvent)
DECLARE_EVENT(ABaseCharacter, FFireWeaponEvent)
DECLARE_EVENT(ABaseCharacter, FReloadWeaponEvent)

UCLASS(Abstract)
class THIRDPERSONSHOOTER_API ABaseCharacter : public ACharacter
{
public:
    FDeathEvent DeathEvent;
	FFireWeaponEvent FireWeaponEvent;
	FReloadWeaponEvent ReloadWeaponEvent;
...
}

```

These events shouldn’t be able to be broadcasted from other classes and the documentation says so. However, I have another class Weapon. The Weapon has a Weapon::User property which points to the User of the Weapon. Nothing stops me from writing:

```
Weapon* weapon;
weapon->User->FireWeaponEvent.Broadcast();

```

For me, this is not correct. In fact, I have this in my code and it compiles and runs without a problem. In a sense, the event acts as a simple delegate and in concept, the event is something more than a delegate. Should this be considered a bug in the UE4 C++ Event implementation? In C# this won’t compile.

Best regards.

EDIT: In my case the DECLARE\_EVENT macro expands to:

```
class FDeathEvent : public TBaseMulticastDelegate<void>
{
        friend class ABaseCharacter;
};

```

Howeever, the TBaseMulticastDelegate::Broadcast() method seems to be public and in my opinion it should be private/protected.

---

<div class="post-metadata">

**Author:** ![kbrizov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kbrizov/32/476596_2.png) [@kbrizov](https://forums.unrealengine.com/u/kbrizov)\
**Post date:** [December 12, 2019, 3:05pm UTC](https://forums.unrealengine.com/t/events-are-broken/459442/2 "2019-12-12T15:05:01Z")

</div>

Turns out I was right and it’s a bug that’s already backlogged:

[https://issues.unrealengine.com/issue/UE-67922](https://issues.unrealengine.com/issue/UE-67922?fbclid=IwAR2toVIM5ZylKpxrlhJrFhT4IPSnqYBLiLJt_TFxAUSWi_gtJkJQlH9ZuOs)
