This is an automated archive made by the Lemmit Bot.

The original was posted on /r/godot by /u/Fitters05 on 2023-08-10 17:30:45.


The point of this set of methods is to create a new instance of “Unit”, the template for the enemies, and to set its script based on the name, but it gives the error “invalid function set_script in base control Unit.gd” and that it can’t convert a string to an object even though “card” is an object.

Any help would be appreciated!!