![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | DigitalDrako |
I have no clue why this keeps happening as I’m using the exact function I’ve used in other projects.
func _on_Button_pressed(button):
update_row_state(button)
button.disabled = true
func update_row_state(button):
var buttons = get_tree().get_nodes_in_group(button.type)
for button in buttons:
if button != button and button.pressed:
button.pressed = false
I know for a fact the buttons are in the group, and I know it’s looking for the right group, it just keeps giving me the error “Attempt to call function ‘get_nodes_in_group’ in base ‘null instance’ on a null instance”