On AnyDamage get a variable or structure from Damage Causer.
I made a structure containing a few variables on an actor that when hit my character applies damage (an arrow), what I'm trying to do is on event any damage the damaged actor reads that structure to get infos like dmg recieve from every type of damage, dmg applied over time, time of the duration of that damage and etecetera. But I can't get that structure from damage causer cause that structure is especific of the actor "Arrow". Theres a way to do that? How? My intention is to make a global dmg apply/recieve system using that structure, and whenever a on any damage event occurs it will get all the info from the damage causer, whatever it is (every dmg cause would have that structure on), process that damage acordingly to the reductions (physical go and get reducted by amor, magical from magic resist and so on).
I apologize for my bad English, which I learned playing video games, I'm grateful for the help.
asked Jan 22 '19 at 11:50 PM in Blueprint Scripting
There are two ways;
1- Damage Causer > Cast To arrowBP and pull the struct from there.
2- Use a Blueprint Interface that contains that struct. That way you can use that interface in any damage causer BP and call it from Damage Causer pin without having to cast to a specific actor.
Follow this question
Once you sign in you will be able to subscribe for any updates here