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

◆ SetParticle()

void EffectParticle::SetParticle ( Particle p)
inlineprotected

Sets the main particle which this Effect will manage.

Аргументы
pParticle Main particle which this Effect will manage

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

135 {
136 // Unregister the events on the old
137 if (m_ParticleObj)
138 {
139 ParticleEvents ope = m_ParticleObj.GetEvents();
142 }
143
144 // Assign the new main Particle
145 m_ParticleObj = p;
146
147 // Register the events on the new
148 if (m_ParticleObj)
149 {
150 ParticleEvents npe = m_ParticleObj.GetEvents();
152 // We will use Stop instead of End, as old particles were destroyed when they stopped
153 // And this system kinda relies on that
155 }
156 }
ref ScriptInvoker Event_OnEffectStarted
Event used when the actual effect started playing.
Определения Effect.c:24
ref ScriptInvoker Event_OnEffectEnded
Event used when the actual effect stopped playing.
Определения Effect.c:25
Particle m_ParticleObj
The main Particle effect that this Effect wrapper manages.
Определения EffectParticle.c:7
ref ScriptInvoker Event_OnParticleStart
Called when particle starts playing.
Определения ParticleBase.c:22
ref ScriptInvoker Event_OnParticleStop
Called when particle stops playing.
Определения ParticleBase.c:28
proto bool Remove(func fn, int flags=EScriptInvokerRemoveFlags.ALL)
remove specific call from list
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list

Перекрестные ссылки Event_OnEffectEnded, Event_OnEffectStarted, ParticleEvents::Event_OnParticleStart, ParticleEvents::Event_OnParticleStop, ScriptInvoker::Insert(), m_ParticleObj и ScriptInvoker::Remove().

Используется в EffBulletImpactBase::Event_OnStarted(), Start() и Stop().