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

◆ CreateParticleEx()

ParticleSource CreateParticleEx ( int id,
vector pos,
int flags = ParticlePropertiesFlags.NONE,
Object parent = null,
vector ori = vector.Zero,
Class owner = null )

Master create function.

Аргументы
idint Particle ID registered in ParticleList
posvector Position of ParticleSource in LS (WS when no parent)
flagsint See ParticlePropertiesFlags (Optional)
parentObject Parent Object which will child the ParticleSource (Optional)
orivector Orientation of ParticleSource in LS (WS when no parent) (Pitch, Yaw, Roll in degrees) (Optional)
ownerClass The owning instance for this particle (Optional)
Возвращает
ParticleSource Created particle instance when successful

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

143 {
144 string particlePath = ParticleList.GetParticleFullPath(id);
145 if (particlePath == "") // There is already an error inside of ParticleList signaling this
146 {
147 ErrorEx(string.Format("Could not create ParticleSource as particle id %1 is invalid.", id));
148 return null;
149 }
150
151 ParticleProperties props = new ParticleProperties(pos, flags, parent, ori, owner);
152 ParticleSource p = CreateParticleByPath(particlePath, props);
153 return p;
154 }
ParticleSource CreateParticleByPath(string path, notnull ParticleProperties properties)
Create a particle.
Определения ParticleManager.c:285
static string GetParticleFullPath(int particle_id)
Returns particle's full path (with .ptc suffix) based on its ID.
Определения ParticleList.c:485
Определения ParticleList.c:12
Entity which has the particle instance as an ObjectComponent.
Определения ParticleSource.c:124
enum ShapeType ErrorEx

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

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