mob/proc/OtherProc()
src.CalledProc("1")
//want to replace one using type???
mob/proc/CalledProc(r)
switch(r)
if("1")
for(var/obj/type1/O in src)
//SAME AS THE OTHER 2
if("2")
for(var/obj/type2/O in src)
//SAME AS THE OTHER 2
if("3")
for(var/obj/type3/O in src)
//SAME AS THE OTHER 2
Wondering how I can cut out the need for SWITCH() and jump straight into FOR()?
I'm guessing its either with type or text2path()? I tried the latter but didn't get it right :\