I am having trouble understanding dynamic delegates.
I understand that it should be seen as an event instigator. Meaning, if something happens, like actor being hit, then call a function.
I am however having trouble in how these functions are created. More specifically their input parameters, in the HealthComponent and ProjectileBase classes. Where can I find documentation that will show the required input parameters for the “OnHit” function and “TakeDamage” functions?
Both of these have a long list of input parameters, however I do not know where these are derived from, is it suppose to be common knowledge?
Also, how are these communicating to each other? How can the OnHit Function, transfer information to a different class (HealthComponent) and then provide the 'TakeDamage" function with all its required input parameters to be able to cause damage?
Thanks in advance for any assistance.