How can i make a character teleport when looked at for 3 seconds?

you can line trace from the camera unsing camera forward vector direction and put some trace collider in the character. If trace is hit then you can start some 3 sec timer and then run asome function…while timer is running you can evaluate the hit so if is not hitting anymore you can just clear the timer.

1 Like