DayZ 1.30
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 строка 97

98 {
99 string surfaceType;
100 g_Game.SurfaceGetType3D(pos[0], pos[1], pos[2], surfaceType);
101
102 typename typeName = GetAmmoEffectTypename(ammoType);
103
104 if ( typeName )
105 {
106 Effect eff = Effect.Cast(typeName.Spawn());
107
108 if ( eff )
109 {
110 eff.SetAutodestroy(true);
111 return SEffectManager.PlayInWorld( eff, pos );
112 }
113 }
114
115 return false;
116 }
DayZGame g_Game
Определения DayZGame.c:4074
string ammoType
Определения DustKickupEffects.c:24
void Effect()
ctor
Определения Effect.c:72
static GetAmmoEffectTypename(string ammoType)
Get the typename for the effect for this ammoType.
Определения AmmoEffects.c:72

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