I’m currently creating a function that performs a LineTraceByChannel triggered by an InputAction, retrieves the Hit Actor from Break Hit Result, and calls an interaction function via a Blueprint Interface.
This works perfectly for regular Static Mesh Actors.
However, it does not work with the ThirdPerson character (e.g., BP_ThirdPersonCharacter) — the interaction doesn’t trigger.
Even though I added the interface to the BP_ThirdPersonCharacter and tried to implement the event, I get this error:
“This function is not marked as BlueprintCallable and thus cannot be placed in the class”
As a result, I can’t add the interface event to the Event Graph.
My Question:
What settings or implementation steps are needed to enable LineTrace interaction with the ThirdPerson character?
Also, how can I properly implement the interface function so it can be used in the character blueprint?
If you don’t wanna use the Camera channel, you can also create a new channel of your own from Project Settings > Engine > Collision > Trace Channels.
Or if you wanna use the Visibility channel for this task, you can select the capsule component from the Components window on the top left, then navigate to the Details window on the right side while having it selected, under the Collision section, set Collision Presets to Custom, expand it, and under the Trace Responses section, set Visibility to Block like this: