DIFF

class ParticleBaseSource

ParticleSource Particle ParticleBase Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 1

void ParticleBase()

ctor

Members 2

protected bool m_IsPlaying

Whether the particle is currently playing

protected ref ParticleEvents m_EventInvokers

Event invokers

Referenced by GetEvents(), and ParticleBase()

Methods 14

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()
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