Is there any way to improve upon this interaction system? 5.4

This system feels a little clunky. It works but I feel like it could be better.

The three things this system needs to do is have a tap interact, hold interact, and having how long you need to hold it down to be unique to an object.

I don’t quite get the delay timer, it looks like it will call interact if you let do before the timer is complete.

Having said that, there no point in doing a line trace on tick, if you’re not using the results for highlighting etc.

It might be more efficient to line trace at the moment the input event is run.

So, I do have it on tick for a reason. I may have an object be highlighted when looked at.

And when it comes to the timer, I don’t think it should trigger due to the branch that separates the interact from the delay. Atleast I think that’s how I think it would work

1 Like

Then you need tick, yes.

For holding i have my own Macro that can be used like this: