How to make squared zig zag (?) line?
I don't really know what to call this type of line, but it's usually used to denote fortress walls in maps and I'm trying to create a consistently spaced distort, I suppose, on the line but I simply don't know how to achieve it. I feel like there has to be some way. For reference, this is what I'm trying to create:

Any ideas would be helpful! I am also not opposed to creating something in Illustrator and pulling it into Photoshop.