Jump to content

ActiveAnimYSort

From ModEnc²
Revision as of 23:07, 8 May 2022 by en>Crimsonum
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: ActiveAnimYSort
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: BuildingTypes


Defines the adjustment to use when sorting this building's active and damaged active animations relative to other objects (including other animations) on the same layer. By default, objects are sorted based on the sum of their X and Y coordinates, on which ActiveAnimYSort is directly applied. Therefore, negative numbers sort the animation behind and positive numbers sort the animation in front of other objects.

ActiveAnimYSort is useful for solving layering issues between building animations and units, but less useful for solving layering issues between building animations and other animations / buildings. For that see ActiveAnimZAdjust.

See also