Getting a list of doors to a room

Started by skullywag, July 31, 2015, 12:27:47 PM

Previous topic - Next topic

skullywag

Anyone know of a way of getting a list of all doors that a room has from the pawn in it. I have the room object no problem but struggling to get the doors from the room as im not sure they are "contained" within it.

This is probably very simple but ive gone code blind from staring at it.

Save me!
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

mrofa

Get room squares, and check them with adjcordinal for doors, or more specific for typeof Building_Door since its the only class of doors recognized by pather anyway
All i do is clutter all around.