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

◆ OnExplodeClient()

void IEntity::OnExplodeClient ( )
inlineprivate

Called on clients when this object explodes.

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

174 {
175 string ammoType = ConfigGetString("ammoType");
176
177 if (ammoType == "")
178 ammoType = "Dummy_Heavy";
179
180 vector pos = GetPosition();
181
182 // Handle spawn of particle if one is configured in config
183 AmmoEffects.PlayAmmoParticle(ammoType, pos);
184
185 // Handle spawn of Effect if one is configured in config
186 AmmoEffects.PlayAmmoEffect(ammoType, pos);
187 }
proto native vector GetPosition()
Retrieve position.
proto string ConfigGetString(string entryName)

Перекрестные ссылки ConfigGetString(), GetPosition, AmmoEffects::PlayAmmoEffect() и AmmoEffects::PlayAmmoParticle().

Используется в SynchExplosion().