It’s a simple question really, and I’ve done a bunch of googling and experimentation, but there’s no help. The docs in question are here (and are really terrible.) According to these docs, I should be able to use AddRaw() on a multicast delegate, although I had to look through the source for the signature, since that apparently was too much work to document.
That said, try this very simple thing in an AActor.
OnTakeAnyDamage.AddRaw(this, &MyActor::HandleOnTakeAnyDamage)
That gets you
error C2039: 'AddRaw' : is not a member of 'FTakeAnyDamageSignature'
Sure, AActor isn’t really a raw object, but that should be fine. If you change it to Add you get
error C2660: 'TMulticastScriptDelegate<FWeakObjectPtr>::Add' : function does not take 2 arguments
So that isn’t even obvious. I don’t really care about the non-raw version of this though. How do I bind a raw method to the damage delegates?