DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Start()

override void EffectParticle::Start ( )
inlineprotected

Plays all elements this effect consists of.

Заметки
Is called by SEffectManager.Play methods

См. определение в файле EffectParticle.c строка 185

186 {
187 if (m_ParticleID > 0)
188 {
189 vector pos = GetPosition();
190 vector ori = GetOrientation();
191
192 if (m_ParentObject)
193 {
194 pos = GetLocalPosition();
195 ori = GetAttachedLocalOri();
196 }
197
198 SetParticle(ParticleManager.GetInstance().CreateParticleEx(m_ParticleID, pos, m_PPFlags, GetParent(), ori));
199 if (m_ParticleObj)
200 {
201 if (m_EffectSound)
202 {
203 if (GetParent())
204 {
205 SEffectManager.PlayOnObject(m_EffectSound, GetParent());
206 }
207 else
208 {
209 m_EffectSound.Start();
210 }
211 }
212
213 m_ParticleObj.PlayParticleEx(m_ParticleID);
214 }
215 }
216
217 super.Start();
218 }
Object m_ParentObject
Cached parent.
Определения Effect.c:39
vector GetLocalPosition()
Get the local position of the Effect.
Определения Effect.c:513
vector GetAttachedLocalOri()
Get the local orientation set by SetAttachedLocalOri.
Определения Effect.c:638
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
vector GetOrientation()
Get the orientation of the EffectParticle.
Определения EffectParticle.c:487
void SetParticle(Particle p)
Sets the main particle which this Effect will manage.
Определения EffectParticle.c:138
EffectSound m_EffectSound
Name of sound set that is going to be played when particle starts playback.
Определения EffectParticle.c:18
Particle m_ParticleObj
The main Particle effect that this Effect wrapper manages.
Определения EffectParticle.c:7
int m_PPFlags
Flags passed to ParticleManager.CreateParticleEx when the particle is created, see ParticleProperties...
Определения EffectParticle.c:20
int m_ParticleID
The ID in the ParticleList to create Particle from.
Определения EffectParticle.c:14
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473
proto native Widget GetParent()
Get parent of the Effect.
Определения Effect.c:422

Перекрестные ссылки GetAttachedLocalOri(), GetLocalPosition(), GetOrientation(), GetParent(), GetPosition(), m_EffectSound, m_ParentObject, m_ParticleID, m_ParticleObj, m_PPFlags, ParticleManager(), SEffectManager::PlayOnObject() и SetParticle().

Используется в EffCloudDust::SetParticleState(), EffectBoatWaterBase::SetParticleState(), EffVehicleDust::SetParticleState(), EffVehicleSmoke::SetParticleState(), EffWheelContact::SetParticleState(), EffWheelSmoke::SetParticleState() и EffectBoatWaterBase::Update().