Disagreed. The script is solid and would do in a pinch for something as basic as this. Triple check your components tags.
Also, the suggestion here is valid and one of the few instances where I do not hate enabling input on a non- pawn / controller actor. Seems quite manageable if treated like so.
I can think of a couple more elaborate (and efficient) ways of handling such interaction but we’d need to justify the upfront work first. As in:
- what else is required?
- how far do you need to take it?
- how diverse and numerous will the interactive elements be?
If it’s small game project with 1 car and 1 player, I would set up the tags or enable input when needed and forgot this existed.