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

◆ CreateParticle()

static ParticleSource ParticleSource::CreateParticle ( int id,
vector pos,
bool playOnCreation = false,
Object parent = null,
vector ori = vector.Zero,
bool forceWorldRotation = false,
Class owner = null )
inlinestaticprotected

Create function.

Аргументы
idint Particle ID registered in ParticleList
posvector Position of ParticleSource in LS (WS when no parent)
playOnCreationbool Whether to play immediately after creation (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)
forceWorldRotationbool Forces orientation to rotate relative to the world and not with the parent (Optional)
ownerClass The owning instance for this particle (Optional)
Возвращает
ParticleSource Created particle instance when successful

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

179 {
180 int flags = ParticlePropertiesFlags.NONE;
181
182 if (playOnCreation)
183 {
184 flags = flags | ParticlePropertiesFlags.PLAY_ON_CREATION;
185 }
186
187 if (forceWorldRotation)
188 {
189 flags = flags | ParticlePropertiesFlags.FORCE_WORLD_ROT;
190 }
191
192 return CreateParticleEx(id, pos, flags, parent, ori, owner);
193 }
static ParticleSource CreateParticleEx(int id, vector pos, int flags=ParticlePropertiesFlags.NONE, Object parent=null, vector ori=vector.Zero, Class owner=null)
Master create function.
Определения ParticleSource.c:205

Перекрестные ссылки CreateParticleEx() и ParticleSource().

Используется в PMTPlayback::TestOnePlayingStandAlone(), PMTPlayback::TestOnePlayingStandAloneAutoDestroy(), PMTPlayback::TestStopping() и PMTPlayback::TestWiggleStress().