Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Jared Dixon |
The Error happens on this function and only appears when I left click or in my input map is “fire” that is associated with my grappling gun that is a child of the Player character
func _input(event):
if event is InputEventMouse: #ERROR HERE
rotate_y(deg2rad(-1 * event.relative.x) * mouse_sens)
head.rotate_x(deg2rad(event.relative.y) * mouse_sens)
# Clamp head x rotation
head.rotation.x = clamp(head.rotation.x, deg2rad(-90), deg2rad(90))