DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DestroyParticleEffect()

void Particle::DestroyParticleEffect ( )
inlineprivate

Destroys ParticleEffect child, called from UpdateState.

Заметки
Does not destroy it immediately As it simply nulls the lifetime Then it will be cleaned up by EOnFrame eventually

См. определение в файле Particle.c строка 474

475 {
476 if ( m_ParticleEffect && GetGame() )
477 {
478 SetParameter(-1, EmitorParam.LIFETIME, 0);
479 SetParameter(-1, EmitorParam.LIFETIME_RND, 0);
480 SetParameter(-1, EmitorParam.REPEAT, 0);
481
482 m_IsRepeat = false;
483 }
484 }
bool m_IsRepeat
Whether this particle repeats.
Определения Particle.c:17
Object m_ParticleEffect
The child object which contains the actual particle.
Определения Particle.c:50
void SetParameter(int emitter, int parameter, float value)
Set the value of a parameter of an emitor in the particle.
Определения Particle.c:625
proto native CGame GetGame()
EmitorParam
Определения EnVisual.c:114

Перекрестные ссылки GetGame(), m_IsRepeat, m_ParticleEffect и SetParameter().

Используется в UpdateState().