DayZ 1.30
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 строка 182

183 {
184 int flags = ParticlePropertiesFlags.NONE;
185
186 if (playOnCreation)
187 {
188 flags = flags | ParticlePropertiesFlags.PLAY_ON_CREATION;
189 }
190
191 if (forceWorldRotation)
192 {
193 flags = flags | ParticlePropertiesFlags.FORCE_WORLD_ROT;
194 }
195
196 return CreateParticleEx(id, pos, flags, parent, ori, owner);
197 }
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:209

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

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