I'm trying to instance an Area
and CollisionShape
to another scene I'm also instancing in under certain parameters. Spatial
doesn't accept me making a variable with these nodes. Example:
func ranged(source):
var temp_area = Area()
var temp_collision = CollisionShape()
How can I script this to be accepted under a script that inherits from a Spatial
node?