I figured it out. There is no way(at least i didnt find any before solving issue other way) to stop built-in function return nothing if it does so. The way around that is to just make godot suppress warnings for functions.> @cybereality said:
If you want to return nothing from your own function you can do this:
return
But I'm not sure what you mean by "built-in function". Did you mean to post an error message or image?
built-in in my eyes are function provided by godot itself connect() or change_scene()(those two make warnings upon running)
On other note making function do return doesnt make it "mute"
Making smth like makes function skip return step
func doSmth() -> void:
pass
(yeah, i used to work with java )
The way to remove warnings from output log is to just to say editor to ignore warnings like this:
# warning-ignore:return_value_discarded
get_tree().change_scene("res://src/SomeScene.tscn")
Thank you all for the help, it was nice to have business with ya. Have a nice day o/