Download

Event dispatchers help.

How would i go about making an event dispatcher?

I have added a picture of what im trying to achieve.

The only problem im having is making the ‘AddKill’ Event dispatcher in C++.

This is what i have gotten so far but no luck.



DECLARE_DELEGATE(FAddKill)

    UPROPERTY(BlueprintAssignable, Category = "PlayerInfo")
        FAddKill AddKill;


But this results in an error and im not sure why.