Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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
69
72 {
74 }
75
76
77
79 override bool IsParticle()
80 {
81 return true;
82 }
83
84
85
90
97 {
98 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
99 }
100
107 bool PlayParticleEx(int particle_id = -1, int flags = 0)
108 {
109 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
110 return false;
111 }
112
118 bool StopParticle(int flags = 0)
119 {
120 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
121 return false;
122 }
123
129 {
130 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
131 return false;
132 }
133
139 {
140 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
141 return false;
142 }
143
149 {
150 ErrorEx("Not implemented.", ErrorExSeverity.WARNING);
151 return false;
152 }
153
155
156
157
163 {
164 return m_EventInvokers;
165 }
166
167
168
175
179 protected void OnParticleStart()
180 {
181 m_IsPlaying = true;
183 }
184
188 protected void OnParticleStop()
189 {
190 m_IsPlaying = false;
192 }
193
197 protected void OnParticleReset()
198 {
200 }
201
206 protected void OnParticleEnd()
207 {
209 }
210
214 protected void OnParticleParented(IEntity parent)
215 {
217 }
218
222 protected void OnParticleUnParented(IEntity parent)
223 {
225 }
226
228}
Definition camera.c:2
Internal ancestor of all Entity implementations.
Definition enentity.c:165
Invokers for ParticleBase events, called from events.
ref ScriptInvoker Event_OnParticleEnd
Called when particle ends.
ref ScriptInvoker Event_OnParticleReset
Called when particle is reset.
ref ScriptInvoker Event_OnParticleStart
Called when particle starts playing.
ref ScriptInvoker Event_OnParticleStop
Called when particle stops playing.
ref ScriptInvoker Event_OnParticleUnParented
Called when particle is orphaned.
ref ScriptInvoker Event_OnParticleParented
Called when particle receives a parent.
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
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:138
ErrorExSeverity
Definition endebug.c:62
enum ShapeType ErrorEx
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