class ParticleBase
ParticleBase › Entity › ObjectTyped › Object › IEntity › Managed
Constructors 2
void ParticleBase()ctor
Show 1 more
, m_EventInvokersvoid ~ParticleBase()Members 4
protected bool m_IsPlayingWhether the particle is currently playing
Show 1 more
, OnParticleStop()protected ref ParticleEvents m_EventInvokersEvent invokers
protected string m_StartSoundSetNameName of sound set that is going to be played when particle starts playback
protected vector m_SoundPositionPosition of sound playback (world)
Methods 17
void PlayParticle(int particle_id = -1)Method to tell the particle to start playing
particle_idintParticle ID registered in ParticleList to start playing
Returns: bool Whether the particle successfully started
Method to tell the particle to start playing
particle_idintParticle ID registered in ParticleList to start playingflagsintFlags to pass to the playing
Returns: bool Whether the particle successfully started
Method to tell the particle to stop playing
flagsintFlags to pass to the stopping
Returns: bool Whether the particle successfully stopped
bool ResetParticle()Method to tell the particle to reset
Returns: bool Whether the particle successfully reset
bool RestartParticle()Method to tell the particle to restart (reset + play)
Returns: bool Whether the particle successfully restarted
bool IsParticlePlaying()Ask if the particle is still playing
Returns: bool Whether the particle is playing
Ask if the particle is still playing
soundSetNamestringName of the sound set to be played (DZ/sounds)positionvectorWorld position on which sound is going to be played
string GetStartSoundName()void PlayStartSound()Play sound (if set) on OnParticleStart event
Show 1 more
, m_StartSoundSetNameParticleEvents GetEvents()Get the events
Returns: ParticleEvents If there is any events set, this will return them so that additional functionality can be bound to them
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
protected void OnParticleParented(IEntity parent)Event when the particle receives a parent
protected void OnParticleUnParented(IEntity parent)Event when the particle is orphaned