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

◆ AttachOnObject()

void EntityLightSource::AttachOnObject ( Object parent,
vector local_pos = "0 0 0",
vector local_ori = "0 0 0" )
inlineprivate

Attaches this light on the parent entity, with optional position and orientation offset.

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

128 {
129 if (!parent)
130 {
131 if (m_Parent)
132 {
133 m_Parent.RemoveChild(this);
134 }
135
136 return;
137 }
138 else
139 {
140 if (m_Parent)
141 {
142 m_Parent.RemoveChild(this);
143 }
144 }
145
146 m_Parent = parent;
147 m_LocalPos = local_pos;
148 m_LocalOri = local_ori;
149 SetOrientation(local_ori);
150 SetPosition(local_pos);
151 parent.AddChild(this, -1);
152 parent.Update();
153 }
vector m_LocalPos
Определения ScriptedLightBase.c:37
Object m_Parent
Определения ScriptedLightBase.c:36
vector m_LocalOri
Определения ScriptedLightBase.c:38
proto native void SetPosition(vector position)
Set the world position of the Effect.
Определения Effect.c:438

Перекрестные ссылки m_LocalOri, m_LocalPos, m_Parent и SetPosition().

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