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

◆ CreateParticleById()

ParticleSource CreateParticleById ( int id,
ParticleProperties properties )

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

Аргументы
idint ID of particle registered in ParticleList
propertiesParticleProperties Properties of the particles created
Возвращает
ParticleSource The resulting particle

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

329 {
331 CreateParticles(tempArr, ParticleList.GetParticleFullPath(id), {properties}, 1);
332
333 if (tempArr.Count() > 0)
334 return tempArr[0];
335 else
336 return null;
337 }
proto native int CreateParticles(array< ParticleSource > particles, string path, notnull ParticlePropertiesArray properties, int count=1)
Creates an amount of particles with the properties given.
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.

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