How do you limit an export var for a filepath to a single folder?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DJ_Fail87

I have this:
export(String, FILE, “*.tscn”) var enemy
Which limits the variable to a scene, but I can’t figure out how to limit it to my Enemies folder.

Probably need more context for this. Are you just trying to get he folder name or a relative path from some where else?

monsterousoperandi | 2022-03-21 23:41

This is for a monster spawner node. The variable is so I can select the enemy in the editor. With it is now it limits the variable to .tscn files, and the enemies folder is one of the top ones, so it isn’t much time being lost opening the folder, but I would still like to know if this can be done.

DJ_Fail87 | 2022-03-23 13:43