This is the other type of hit — a physical one. The trace hit looks like this:
It’s not supposed to. Event Hit is generated when one actor physically hits another (like if you as a character run into it). Trace hit does not generate a Hit Event per se for any actor.
What you need to do is take the Actor pin from the Break Result and work with that. Cast it to the class that contains that PrintString and then call the functions you need.
Hey guys,
I’ve got a line trace shooting out from my camera every frame for a short distance, this is meant for interactable objects so I can interact with the correct object.
I have set my own line trace channel to “Interact” and set it by default to ignore, but set the interactable objects to Block. My line trace is hitting the correct objects as expected, but no Hit Event is being triggered from the hit actor.
I’ve posted some screenshots to show what sort of thing I’m doing. At the moment it is a simple message to display when it receives a hit, however I’m getting no such message from the actor.
I already have that set up, my line trace is working fine.
Unless you’re suggesting I need to do something specific with the hit result? Because as far as I’m aware the hit result should appear the same in the Event Hit on the actor itself.
I have tested using print strings and my line trace along with my Hit results on that end are working fine, it returns a true when it’s a blocking hit and the hit actor is also correct.
The issue is that on that actor I’m hitting it is not generating an Event Hit
Hmm, this is not ideal but I’ll work with it, thanks for the info
Just incase anybody else comes across trying to do a similar thing to me, then I just want to share my current setup. Might not be totally optimised.
This means that only objects that are being looked at (while also obviously being in rage to interact with) are being interacted with.
hello i`m a bit confused here.
If i understand evrything correctly the entire logic for evrything needs to be set up on your character becouse you cant get the events triggered via the character on the other blueprints ?
I shoot a linetrace to to an object and subtract health on the sharacter.
I want to create i am dead when my heath is 0 and poll evry time the character is hit by a linetrace but i seemingly cant do this in the blueprints outside of the one creating the linetrace ?
(i know i can check evry tick bit that’s really stupid)