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

◆ StopParticle()

override bool Particle::StopParticle ( int flags = 0)
inlineprotected

Method to tell the particle to stop playing.

Заметки
No flags available for Particle
Emitors are automatically removed later when its particle count is 0
Аргументы
flagsint Flags to pass to the stopping (None on this level)
Возвращает
bool Whether the particle successfully stopped

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

246 {
248
249 // Without the following we might get an error when a particle parent is despawned client-side.
250 Object parent = Object.Cast( GetParent() );
251 if ( parent && !ToDelete())
252 {
253 vector world_pos = GetPosition();
254 parent.RemoveChild(this);
255 SetPosition(world_pos);
256 }
257
258 UpdateState();
259
260 return true;
261 }
void OnParticleStop()
Event when the particle stops.
Определения ParticleBase.c:188
void UpdateState()
Creates/Destroys ParticleEffect child according to current state.
Определения Particle.c:425
class LOD Object
proto native void SetPosition(vector position)
Set the world position of the Effect.
Определения Effect.c:438
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9
proto native Widget GetParent()
Get parent of the Effect.
Определения Effect.c:407

Перекрестные ссылки GetParent(), GetPosition, OnParticleStop(), SetPosition() и UpdateState().

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