func _on_input_event(event: InputEvent) -> void:
if event.is_action_just_pressed("mb_left"):
pass
if event.is_action_just_pressed("mb_right"):
Gm.money += 100
$"../..".queue_free()

written code is attached to an area2d and worked previously however it has started returning this and im not sure why?
E 0:00:04:0108 emit_signalp: Error calling from signal 'input_event' to callable: 'Area2D(select.gd)::_on_input_event': Method expected 1 arguments, but called with 3.
<C++ Source> core/object/object.cpp:1200 @ emit_signalp()

    Thundershade but it says that Error calling from signal 'input_event' to callable: 'Area2D(select.gd)::_on_input_event': Method expected 1 arguments, but called with 3.

    Make a break point and inspect

      kuligs2 it errors every single time an input is given and doesnt run any of the code anyway

        Thundershade but you are calling _on_input_event with 3 arguments somewhere in the select.gd script, instead of 1 argument

        func _on_input_event(event: InputEvent) -> void:
        Im just dumb I literally just deleted the viewport: Node and shape_idx: int. I put them back and it worked again

        func on_input_event(viewport: Node, event: InputEvent, _shape_idx: int) -> void: