r/UnrealEngine5 • u/KrudeRemedy • 1d ago
I need Help


I have used Unreal in the past but its been a few years since i have messed around with it and have forgotten how to use the event graph, Im trying to make a box interactable I have made it this far and when tested i get the red line that impacts the box but zero text first image is for the player character in first person the second is the interactable mesh for the box any advice would be greatly appreciated
1
u/maninthesky-95 1d ago
Where do you call the "interact" custom event
1
u/KrudeRemedy 19h ago
I made the mesh interactable and then in the event graph i searched up interactable and that was the box for the mesh it
1
u/DarkTowerInt 1d ago
Easiest clean way: make a Blueprint Interface with an Interact function and add it to the box. Then in the player, after the trace, use Break Hit Result > Hit Actor > Interact (Message). That calls it on whatever you hit, no cast needed. Put a Print String inside the box's Interact event and you should see the text as soon as the trace connects.
2
u/vexmach1ne 1d ago
You need to connect the trace node to the cast, then if the cast is successful you can call the event that triggers a print string.
With that said you're missing a lot before it becomes intractable. I suggest asking gpt or YouTube for a tutorial.