Top  | Previous | Next

Advanced / forceQuality

forceQuality(value, [qualityCode])

Returns the given value, but overwrites the quality of that value. If the quality argument is omitted, the quality will be GOOD (192). This is a way to have expressions opt-out of the quality overlay system. You can also force a specific quality code here by including the quality argument.

 

forceQuality({Tanks/Tank15})

... returns the value of the Tank15 tag, but always with a good quality code.

 

forceQuality({Tanks/Tank15}, 410)

... returns the value of the Tank15 tag, but always with a TAG_DISABLED quality.

 

See also:

Quality Overlays