Thanks for the mention @vr_marco !
The fundamental concept of the Gaze Component in my plugin is this:
- Do a constant line trace from the Pawn’s Camera to a specified distance in the world
- Check hit actor for a Tag, if it exists, trigger an event where the user can specify their own action/s returning %age of time used up along with info about the hit results…
You can use BP timers and/or track GameTimeInSeconds to check for duration if you want to create your own solution in pure BP. I use a line trace + actor tag combo as it’s cheaper resource wise.
Hope that helps a bit and gives you some starting point/s to work from.
Cheers.