DayZ 1.24
Loading...
Searching...
No Matches
ParticleBase.c
Go to the documentation of this file.
1
53
60class ParticleBase : Entity
61{
63 protected bool m_IsPlaying;
64
67
68
71 {
73 }
74
75
77 override bool IsParticle()
78 {
79 return true;
80 }
81
82
87
94 {
95 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
96 }
97
104 bool PlayParticleEx(int particle_id = -1, int flags = 0)
105 {
106 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
107 return false;
108 }
109
115 bool StopParticle(int flags = 0)
116 {
117 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
118 return false;
119 }
120
126 {
127 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
128 return false;
129 }
130
136 {
137 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
138 return false;
139 }
140
146 {
147 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
148 return false;
149 }
150
152
153
159 {
160 return m_EventInvokers;
161 }
162
163
170
174 protected void OnParticleStart()
175 {
176 m_IsPlaying = true;
177 GetEvents().Event_OnParticleStart.Invoke(this);
178 }
179
183 protected void OnParticleStop()
184 {
185 m_IsPlaying = false;
186 GetEvents().Event_OnParticleStop.Invoke(this);
187 }
188
192 protected void OnParticleReset()
193 {
194 GetEvents().Event_OnParticleReset.Invoke(this);
195 }
196
201 protected void OnParticleEnd()
202 {
203 GetEvents().Event_OnParticleEnd.Invoke(this);
204 }
205
209 protected void OnParticleParented(IEntity parent)
210 {
211 GetEvents().Event_OnParticleParented.Invoke(this);
212 }
213
217 protected void OnParticleUnParented(IEntity parent)
218 {
220 }
221
223}
bool m_IsPlaying
Whether the Effect is currently playing.
Definition Effect.c:37
bool IsParticle()
Check whether the Effect is EffectParticle without casting.
Definition Effect.c:131
void PlayParticle(int particle_id=-1)
Method to tell the particle to start playing.
void ParticleBase()
ctor
ParticleEvents GetEvents()
Get the events.
bool StopParticle(int flags=0)
Method to tell the particle to stop playing.
bool ResetParticle()
Method to tell the particle to reset.
bool RestartParticle()
Method to tell the particle to restart (reset + play)
void OnParticleParented(IEntity parent)
Event when the particle receives a parent.
bool PlayParticleEx(int particle_id=-1, int flags=0)
Method to tell the particle to start playing.
void OnParticleStart()
Event when the particle starts.
void OnParticleUnParented(IEntity parent)
Event when the particle is orphaned.
void OnParticleReset()
Event when the particle is restarted.
ref ParticleEvents m_EventInvokers
Event invokers.
void OnParticleEnd()
Event when the particle ends.
bool IsParticlePlaying()
Ask if the particle is still playing.
void OnParticleStop()
Event when the particle stops.
int particle_id
Definition Camera.c:2
Invokers for ParticleBase events, called from events.
ref ScriptInvoker Event_OnParticleUnParented
Called when particle is orphaned.
ref ScriptInvoker Event_OnParticleEnd
Called when particle ends.
ref ScriptInvoker Event_OnParticleParented
Called when particle receives a parent.
ref ScriptInvoker Event_OnParticleStart
Called when particle starts playing.
ref ScriptInvoker Event_OnParticleReset
Called when particle is reset.
ref ScriptInvoker Event_OnParticleStop
Called when particle stops playing.
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
ErrorExSeverity
Definition EnDebug.c:62
enum ShapeType ErrorEx