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

◆ PlayAmmoEffect()

static bool AmmoEffects::PlayAmmoEffect ( string ammoType,
vector pos )
inlinestaticprivate

Attempt to play the ammo effect at pos if found, returns true on success.

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

94 {
95 typename typeName = GetAmmoEffectTypename(ammoType);
96
97 if ( typeName )
98 {
99 Effect eff = Effect.Cast(typeName.Spawn());
100
101 if ( eff )
102 {
103 eff.SetAutodestroy(true);
104 return SEffectManager.PlayInWorld( eff, pos );
105 }
106 }
107
108 return false;
109 }
void Effect()
ctor
Определения Effect.c:70
static GetAmmoEffectTypename(string ammoType)
Get the typename for the effect for this ammoType.
Определения AmmoEffects.c:68

Перекрестные ссылки Effect(), GetAmmoEffectTypename() и SEffectManager::PlayInWorld().

Используется в IEntity::OnExplodeClient().