Hello everybody, I am stuck on trying to figure out how I would go about finding anything that is within a set path and then adding it onto a list.
For example: I am trying to figure out how to add anything that is under the path of
/obj/Weapons
I know how to easily do it if I were to set a variable to search for , something like:
var/list/All_Weapons = list()
mob/proc
Add_To_List(weapon)
var/Weapon = text2path("/obj/Weapons/[weapon]")
global.All_Weapons += Weapon
world<<Weapon
But I have no idea how to just take in ANYTHING after a set path, will I have add in some variables in order to get something like this to work?
That should get ya going.