clemens-tolboom / godot_3_spawn_points

MIT License
3 stars 0 forks source link

Expose the owner of the produced offspring #9

Closed clemens-tolboom closed 3 years ago

clemens-tolboom commented 3 years ago

https://docs.godotengine.org/en/stable/getting_started/scripting/gdscript/gdscript_exports.html#examples

# Another node in the scene can be exported as a NodePath.
export(NodePath) var node_path
# Do take note that the node itself isn't being exported -
# there is one more step to call the true node:
var node = get_node(node_path)