Hi, I’m trying to make an interact system using a line trace from where you’re looking, and I want it to check the hit actor for its tags, then depending on what it’s second tag is it will perform a certain action.
All interactable objects have at least 2 tags, the first one is called ‘Interactable’, and the second depends on the item, for example a lockpick door’s second tag will be ‘Lockpickable’, an item you loot’s second tag will be ‘Lootable’, a lever’s second tag would be ‘Pull lever’. I want it so the line trace hits an actor, gets a copy of its second tag, then plug the result into a node which has a list of potential second tags, so you plug it into the node then depending on what the what the name of the tag is it will have a different output. Does such a thing exist? If not, how would I do it?
I’ll try and draw out what I mean to make it more clear.