# Delegates Where to "pick up" signature?

**URL:** <https://forums.unrealengine.com/t/delegates-where-to-pick-up-signature/280899>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 17, 2014, 5:04pm UTC](https://forums.unrealengine.com/t/delegates-where-to-pick-up-signature/280899 "2014-04-17T17:04:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [April 17, 2014, 5:04pm UTC](https://forums.unrealengine.com/t/delegates-where-to-pick-up-signature/280899/1 "2014-04-17T17:04:36Z")

</div>

I have a qustion be may a “dumb” qustion but goes, delegats are functions / events i can hook into.?

AActor you have the

```
/** Called when the actor is damaged in any way. */ 
UPROPERTY(BlueprintAssignable, Category="Game|Damage") FTakeAnyDamageSignature OnTakeAnyDamage;

```

Concept is somewhat new to me .  
Are they for hooking functions so i can “Pick up” a event on one actor from the second?  
The documentation is somewhat confusing regarding this and the wiki is a bit over simplefied.

You declare them as so.

```
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams( FTakeAnyDamageSignature, float, Damage, const class UDamageType*, DamageType, class AController*, InstigatedBy, class AActor*, DamageCauser );

```

And add them as so `OnActorBeginOverlap.AddDynamic(objectPtr, &Class::FuFunc);`  
And now when ever the FuFunc is called the event will trigger?  
But I dont understand what happens where do i pick up the signature?

For refrence am using

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

> **[Network Tips and Tricks in Unreal Engine 4](https://www.unrealengine.com/de/blog/network-tips-and-tricks)**
>
> I wanted to talk about a few tips that are good to know about when dealing with replicated properties in native code. The full explanation of how to replicate a property is somewhat out of the scope of this article, but I can quickly go over the...

[Delegates and Lamba Functions in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Delegates/index.html) [UFunctions in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Reference/Functions/index.html)

Am sure its not that hard once you manage to understand whats happening under the hood.  
Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [April 18, 2014, 5:51pm UTC](https://forums.unrealengine.com/t/delegates-where-to-pick-up-signature/280899/2 "2014-04-18T17:51:48Z")

</div>

Anyone have the time to answer this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [April 19, 2014, 5:53pm UTC](https://forums.unrealengine.com/t/delegates-where-to-pick-up-signature/280899/3 "2014-04-19T17:53:00Z")

</div>

So no one knows how to do this?

---

<div class="post-metadata">

**Author:** ![enlight\_2014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@enlight\_2014](https://forums.unrealengine.com/u/enlight_2014)\
**Post date:** [April 20, 2014, 10:33am UTC](https://forums.unrealengine.com/t/delegates-where-to-pick-up-signature/280899/4 "2014-04-20T10:33:50Z")

</div>

> Are they for hooking functions so i can “Pick up” a event on one actor from the second?

Yes, though they’re not limited to actors.

> And add them as so `OnActorBeginOverlap.AddDynamic(objectPtr, &Class::FuFunc);` And now when ever the FuFunc is called the event will trigger?

You’ve got that backwards, whenever OnActorBeginOverlap is executed `objectPtr->FuFunc()` will be called with the parameters you passed to `OnActorBeginOverlap.Execute()` or `OnActorBeginOverlap.ExecuteIfBound()`. If you call `objectPtr->FuFunc()` directly it will have no effect whatsoever on the delegate.

> But I dont understand what happens where do i pick up the signature?

I don’t understand what you mean, the signature of the delegate must match the signature of the function you hook up to the delegate.
