Auto-complete not working when overriding a class function

Godot Version

Godot v4.4.1

Question

I have an Enemy class defined by: class_name Enemy. Inside this script, I have a a function called _handle_hit(). I also have an Orc that extends Enemy. Inside the Orc script, I want to override the _handle_hit() function.

When I start typing to override, I expect to auto-complete to also get the parameters like it does when I override the _process() function. But it doesn’t auto-complete. However, when I go to use the function inside the script, it auto-completes like it should.

I used static typing inside the Enemy class so it shouldn’t be an issue with that.

This will be implemented in Godot 4.5 Add code completion for user-defined methods when overriding in GDScript by SatLess · Pull Request #106198 · godotengine/godot · GitHub

You can test it now in the latest beta Dev snapshot: Godot 4.5 beta 1 – Godot Engine

2 Likes