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

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

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

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