DIFF

class ParticleBase

ParticleBase › Entity › ObjectTyped › Object › IEntity › Managed

Constructors 2

void ParticleBase()

ctor

Members 4

protected bool m_IsPlaying

Whether the particle is currently playing

protected ref ParticleEvents m_EventInvokers

Event invokers

protected string m_StartSoundSetName

Name of sound set that is going to be played when particle starts playback

protected vector m_SoundPosition

Position of sound playback (world)

Methods 17

override bool IsParticle()

Have script recognize this as a Particle without casting

void PlayParticle(int particle_id = -1)

Method to tell the particle to start playing

particle_id
int Particle ID registered in ParticleList to start playing

Returns: bool Whether the particle successfully started

References ErrorEx()
bool PlayParticleEx(int particle_id = -1, int flags = 0)

Method to tell the particle to start playing

particle_id
int Particle ID registered in ParticleList to start playing
flags
int Flags to pass to the playing

Returns: bool Whether the particle successfully started

References ErrorEx()
bool StopParticle(int flags = 0)

Method to tell the particle to stop playing

flags
int Flags to pass to the stopping

Returns: bool Whether the particle successfully stopped

References ErrorEx()
bool ResetParticle()

Method to tell the particle to reset

Returns: bool Whether the particle successfully reset

References ErrorEx()
bool RestartParticle()

Method to tell the particle to restart (reset + play)

Returns: bool Whether the particle successfully restarted

References ErrorEx()
bool IsParticlePlaying()

Ask if the particle is still playing

Returns: bool Whether the particle is playing

References ErrorEx()
void SetStartSoundParams(string soundSetName, vector position)

Ask if the particle is still playing

soundSetName
string Name of the sound set to be played (DZ/sounds)
position
vector World position on which sound is going to be played
string GetStartSoundName()
void PlayStartSound()

Play sound (if set) on OnParticleStart event

protected void OnParticleStart()

Event when the particle starts

protected void OnParticleStop()

Event when the particle stops

protected void OnParticleReset()

Event when the particle is restarted

protected void OnParticleEnd()

Event when the particle ends

NoteLooping particles will never end
protected void OnParticleParented(IEntity parent)

Event when the particle receives a parent

protected void OnParticleUnParented(IEntity parent)

Event when the particle is orphaned