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

◆ CreateParticle()

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

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

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

116 {
117 int flags = ParticlePropertiesFlags.NONE;
118
119 if (playOnCreation)
120 {
121 flags = flags | ParticlePropertiesFlags.PLAY_ON_CREATION;
122 }
123
124 if (forceWorldRotation)
125 {
126 flags = flags | ParticlePropertiesFlags.FORCE_WORLD_ROT;
127 }
128
129 return CreateParticleEx(id, pos, flags, parent, ori, owner);
130 }
ParticleSource CreateParticleEx(int id, vector pos, int flags=ParticlePropertiesFlags.NONE, Object parent=null, vector ori=vector.Zero, Class owner=null)
Master create function.
Определения ParticleManager.c:142

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