#you would break the hit result from the
1 messages · Page 1 of 1 (latest)
but how would i cast that information to the one receiving the damage?
I need for the damage receiver to know what specific component has been damaged the second it is damaged.
Settup an interface, and pass data through that to the hit actor
i've already got a system to generate damage based on line trace and specific channels with hitboxes blocking those channels. Any time the trace is blocked, apply damage to blocking actor. would making an interface mean redoing all that?
The receiver is receiving damage, but not hits for some reason as well. Even though the Generates Hit is activated.
in that case the line trace "out hit" should return after breaking the result a hit component which is exactly what you are looking for
i do get that yeah, the damage causer is outputting the correct hit component of the actor that is receiving damage. my issue is then somehow relaying that information to the receiver so they know what is being hit.
are you saying that is where the interface comes in? i was trying to find a solution via the "cast to" methods
You want to fire an event between blueprints ? Use interfaces
yes the interface is what you should be using instead of casting
create a interface and add it to both then create a function called component hit, add a output variable of object ref called component, after the hit result drag the hit actor line and add component hit (message)
plug in the hit component to that, then in your hit actor right click and type hit component should be under your interface and it will give you that data
thanks so much for the help, I'll give that a try here.
I would suggest watching some tutorials about interfaces they are extremly useful and are used almost always instead of casting
Well I got totally lost trying to follow. Will try some googling on interfaces to see if anyone else has a similar problem. Thanks for point me in the right direction.
Managed to get this working using PointDamage vs AnyDamage, but thanks for the help!