DaveTheCoder as I was driving to work today I realized I may have been overcomplicating my life.
Basically, what I want to do is have each enemy in the game create a "respawner" node when it dies that can be triggered to spawn a new copy of the enemy after certain conditions are met. I want to be able to put this function on the base enemy class so that anything inheriting from it will be able to do this automatically.
I think for my purposes, I can store a reference to the scene when the object is first created, and then use that stored reference for later.
But I am intrigued by the
duplicate function. And it may be what I was asking about.
To make a new instance of the node running the script, would it basically just be something like:
var newCopy = duplicate().instance