Skip to content

IsAnimated

Terrain object that plays through its artwork instead of holding a single frame.

Specification
Applies to
TerrainType
File
rules.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

The flag turns on three separate behaviors at once.

Once per frame, an object of the type whose animation is stopped rolls against AnimationProbability to start it again, and a successful roll returns the object to its first frame and sets the pace from AnimationRate. The frame drawn is then the animation’s own, which displaces both the damaged frame an ordinary terrain object shows below two health and the crumbling frames a dying one shows. And the object stops writing its silhouette into the depth buffer for as long as the flag is set, so that a shape changing from frame to frame cannot stamp a stale outline there.

rules.ini
[MYTREE] ; example blossom tree
IsAnimated=yes
AnimationRate=3
AnimationProbability=.02
SpawnsTiberium=yes