Something else you can do, and I use all the time, is export a NodePath so you can set the node you want to get in the Godot editor! The code for it is like this:
extends Node
export (NodePath) var path_to_external_node
var external_node
func _ready():
external_node = get_node(path_to_external_node)