Skip to content

Duration

How many frames a voxel animation lives before it performs its impact and is removed.

Specification
Applies to
VoxelAnimType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
30

A count of game frames, fifteen to the second. The counter is loaded when the piece is created and stepped down once per frame; reaching zero runs the impact — ExpireAnim, the blast, ExpireSound, and whatever cratering or Tiberium seeding the type calls for — and then deletes the piece.

The full count is rarely spent. Debris that comes to rest before the counter runs out has it cleared, and the impact follows on the next frame; a value of 0 or below expires the piece on its first frame of logic, before it has moved at all.

A meteor spends the count differently. Its counter is shortened by a random 0 to 19 frames at creation, and the shortened figure is also the flight time the piece is placed back along, so it is the length of the approach as much as the length of the life. IsMeteor describes that flight.