Hello, how to add two triggers to one object and activate them using line trace?
Example:
I would like to use door in two different ways. First when I look at the door handle I can do action A (open door) and by looking at the knocker I can do action B (knock on the door).
I know how to do this using overlap event but is it possible to achieve same effect using line trace?
Thx in advanced.
It is possible, you would have to have some way to distinguish the “knocker” from the “handle” so either have 2 separate collision boxes for each part or make them out of 2 different meshes etc. Then line trace to each one and run different logic off of what object/mesh/collision box the line trace hits.
Hey thanks for the answer, but how can I determinate what object/mesh line trace hit?
Right now my door is a one blueprint actor and when its hit by the line trace it sees it as a one object. I was trying to add additional triggers inside door blueprint either as mesh or another blueprint actor but without success.
In case of blueprint actor I was even trying casting which in theory works but when im adding it to blueprint door as a new component it looses their logic.
Here is my current setup, again main question is how to trigger object hit by a line trace?