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

◆ CreateParticlesById()

int CreateParticlesById ( int id,
notnull ParticlePropertiesArray properties,
int count )

QoL function 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
countint Amount of particles to create with these properties
Возвращает
int Amount of particles created in this frame, if the ParticleManager is still allocating while this is called and virtual particles are enabled, the overflow particles will be virtual instead

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

304 {
305 return CreateParticles(null, ParticleList.GetParticleFullPath(id), properties, count);
306 }
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

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