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

◆ PlayOnObject()

static Particle Particle::PlayOnObject ( int particle_id,
Object parent_obj,
vector local_pos = "0 0 0",
vector local_ori = "0 0 0",
bool force_world_rotation = false )
inlinestaticprotected

Creates a particle emitter, attaches it on the given object and activates it.

Аргументы
particle_idint Particle ID registered in ParticleList
parent_objObject Instance on which this particle will be attached
local_posvector Attachment position local to the parent (Optional)
local_orivector Orientation local to the parent (Pitch, Yaw, Roll in degrees) (Optional)
force_world_rotationbool Forces particle's orientation to rotate relative to the world and not with the object (Optional)
Возвращает
Particle Created particle instance

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

153 {
154 Particle p = CreateOnObject(particle_id, parent_obj, local_pos, local_ori, force_world_rotation);
155 p.PlayParticle();
156
157 return p;
158 }
int particle_id
Определения SmokeSimulation.c:28
void Particle()
ctor
Определения Particle.c:61
override void PlayParticle(int particle_id=-1)
Method to tell the particle to start playing.
Определения Particle.c:203
static Particle CreateOnObject(int particle_id, Object parent_obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_world_rotation=false)
Creates a particle emitter and attaches it on the given object.
Определения Particle.c:88

Перекрестные ссылки CreateOnObject(), Particle(), particle_id и PlayParticle().

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