Create fire object for player to interact with:
Add Interact in project setting
Add a new object channel, called Interact, set default response as block
Open Player Base BP, add Scene component, name as Interact Fire From
roughly put in front of player
add function, called Interact
In event graph, add follow:
See if it works (the debug showing)
Test if interact fucntion works:
Back to PlayerBase BP, Interact:
Change back the debug type to none (set for duration is for testing)
Extend the graph:
Choose an object in scene to interact,
set its collision preset as custom, object type as Interact:
To communicate with the object:
Create a BP interface, called Interact_BPI
Make function and input:
Go to PlayerBase BP, remove print string and revise as:
Create a BP actor, called Base Interactable_BP
add static mesh, add interface
collison prest on the mesh:
in event graph