Sector iterator without tags?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Major Cooke
Posts: 8221
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town

Sector iterator without tags?

Post by Major Cooke »

I'd like a way to iterate through sectors regardless of having a tag or not. Simply put, I'm just making a simple iterator that goes through, records any sectors with a certain texture and then changes them. Then, change any/all lines with a certain texture after recording them as well.

Any ideas on how? I know how to change the textures themselves, it's just iterating through them all.
User avatar
phantombeta
Posts: 2218
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Sector iterator without tags?

Post by phantombeta »

LevelLocals seems to have a dynamic array member that should have all of the map's sectors.
I imagine you'd loop over it.

Return to “Scripting”