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

◆ PlayInWorld()

static int SEffectManager::PlayInWorld ( notnull Effect eff,
vector pos )
inlinestaticprotected

Play an Effect.

Предупреждения
As the Effect is automatically registered, it will not be freed automatically (because of the ref) Unless 'SetAutodestroy(true)' is called on the created 'Effect', which will clean it up when the sound stop Alternatively, SEffectManager.DestroyEffect can be called manually, which will also unregister and cleanup
Аргументы
effEffect The Effect to play
posvector The position to play the Effect
Возвращает
int The registered ID of the Effect

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

48 {
49 // Stop the effect first, just in case
50 eff.Stop();
51
52 int id = EffectRegister(eff);
53
54 eff.SetPosition( pos );
55 eff.Start();
56
57 return id;
58 }
static int EffectRegister(Effect effect)
Registers Effect in SEffectManager.
Определения EffectManager.c:322

Перекрестные ссылки Effect() и EffectRegister().

Используется в Hit_MeatBones::BloodSplatGround(), CreateParticle(), ImpactMaterials::EvaluateImpactEffect(), ManBase::OnParticleEvent(), OnVariablesSynchronized(), ParticleEffecter::OnVariablesSynchronized(), AmmoEffects::PlayAmmoEffect(), BleedingSourcesManagerBase::SetDiag(), DayZIntroSceneXbox::SetupParticles() и Explosion::SpawnEffect().