if (%obj.[b]cloak[/b]) %buildingPiece = %buildingPiece @ "%building.setCloaked(true);";
If you're not using a field and just want it to save something that's cloaked as cloaked, you can use just the last line and modify it to use "if (%obj.isCloaked())" in place of "if (%obj.cloak)". Though, that way anything temporarily cloaked at the time of saving will load as cloaked.
Comments
Is your cloak command setting a field or are does it just use isCloaked/setCloaked?
Open saveBuilding.cs
If you're using a field (such as obj.cloak in this example), find a line such as: Add below:
Find the line: Add below:
If you're not using a field and just want it to save something that's cloaked as cloaked, you can use just the last line and modify it to use "if (%obj.isCloaked())" in place of "if (%obj.cloak)". Though, that way anything temporarily cloaked at the time of saving will load as cloaked.