kuligs2 To make a console you need a LineEdit to enter commands and a TextEdit to echo them out. Put them in a window and there's your console.
To execute exactly what the guy in the video is executing:
func spawn_grenade(pos):
print("spawning grenade at: ", pos)
func _ready():
var e = Expression.new()
var command = "spawn_grenade($SomeNode.position + $SomeNode/Child.position)"
command = command.replace("$", "get_node(\"")
command = command.replace(".", "\")." )
e.parse(command)
e.execute([], self)
You can of course get much more sophisticated with a bit of help from regex.