ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Lifetime"

From ModEnc
Jump to: navigation, search
 
(Added some notes.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
+
{{flag
Specifies the total time, in frames, for which this system will exist. If this is not specified, then the system will exist for as long as its SHP sequence determines (for example when it runs out of frames or it reaches very low translucency).
+
|files={{Categ|Rules(md).ini}}
 +
|values={{values|unsigned integer}}
 +
|default=-1
 +
|types={{Categ|ParticleSystems}}
 +
|ts=yes
 +
|fs=yes
 +
|hp=yes
 +
|ra2=yes
 +
|yr=yes
 +
|ares=yes
 +
}}
 +
 
 +
Specifies the maximum time, in [[frames]], for which this particle system can exist. Defaults to -1 which means infinite.
 +
 
 +
== Notes ==
 +
* Most particle system [[BehavesLike|behavior types]] cause the system to be deleted as soon as it stops [[Spawns|spawning]] more particles, with the exception of [[BehavesLike|gas and weak gas systems]] – these systems will not expire unless limited with {{f|Lifetime}}.
 +
** {{W}} Note that the particle system {{tt|[GasCloudSys]}} must ''not'' have a limited {{f|Lifetime}} [[Internal_Error#eip_005A59B4|else the game will crash]] when that system is created.

Latest revision as of 10:54, 28 February 2024

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Lifetime
File(s): Rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default:
Applicable to: ParticleSystems


Specifies the maximum time, in frames, for which this particle system can exist. Defaults to -1 which means infinite.

Notes

  • Most particle system behavior types cause the system to be deleted as soon as it stops spawning more particles, with the exception of gas and weak gas systems – these systems will not expire unless limited with Lifetime.
    • Warning small.png Note that the particle system [GasCloudSys] must not have a limited Lifetime else the game will crash when that system is created.