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

◆ AddAsChild()

override void ParticleSource::AddAsChild ( Object parent,
vector local_pos = "0 0 0",
vector local_ori = "0 0 0",
bool force_rotation_to_world = false )
inlineprotected

Attaches this particle onto some object. If null value is provided then the particle will be detached from the current parent.

Заметки
Unlike Particle, you are free to use AddChild/RemoveChild instead of this one if you know what you are doing
Аргументы
parentObject Parent onto which this particle will be attached
local_posvector Attachment position local to the parent (optional)
local_orivector Orientation local to the parent (Pitch, Yawn, Roll in degrees) (Optional)
force_rotation_to_worldbool Force rotation to be in WS (Optional)

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

784 {
785 int flags = ParticlePropertiesFlags.NONE;
786
787 if (force_rotation_to_world)
788 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
789
790 ParticleProperties props = new ParticleProperties(local_pos, flags, parent, local_ori);
791 ApplyProperties(props);
792 }
bool ApplyProperties(ParticleProperties properties)
Applies the properties given to the ParticleSource.
Определения ParticleSource.c:547

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

Используется в DestructionEffectBase::PlayParticle().