So basically, i have an export_enum that handles what the enemy should move
and a function that calls a function depending on the export chosen
Unfortunately when i try this, it comes up with an error. What am i doing wrong?
call a function using a string
- Best Answerset by SuperMatCat24
SuperMatCat24 String passed to call()
should contain only the name of the function, without parentheses.
9 months later
- Edited
var a = CallFunc
$Node.call(str(CallFunc))
For Godot 4