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

◆ PlayParticleById()

ParticleSource PlayParticleById ( int id,
array< vector > position )

QoL function for when only one particle is needed using script ParticleList, strongly recommend to read comments for PlayParticles as well.

Аргументы
idint ID of particle registered in ParticleList
positionsarray<vector> Positions of particles
Возвращает
ParticleSource The resulting particle

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

370 {
372 PlayParticles(tempArr, ParticleList.GetParticleFullPath(id), position, 1);
373
374 if (tempArr.Count() > 0)
375 return tempArr[0];
376 else
377 return null;
378 }
proto native int PlayParticles(out array< ParticleSource > particles, string path, notnull array< vector > positions, int count=1)
QoL function for when wanting to play a particle at a position right away.
static string GetParticleFullPath(int particle_id)
Returns particle's full path (with .ptc suffix) based on its ID.
Определения ParticleList.c:485
Определения ParticleList.c:12
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

Перекрестные ссылки ParticleList::GetParticleFullPath() и PlayParticles().