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

◆ DetachFromParent()

void EntityLightSource::DetachFromParent ( )
inlineprivate

Detaches this light from its parent entity.

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

193 {
194 if (!m_Parent)
195 {
196 m_Parent = Object.Cast( GetParent() );
197 }
198
199 if (m_Parent)
200 {
201 if ( !m_Parent.ToDelete() && !ToDelete() )
202 {
203 m_Parent.RemoveChild(this);
204 }
205 }
206
207 m_Parent = null;
208 m_LocalPos = Vector(0,0,0);
209 m_LocalOri = Vector(0,0,0);
210 }
vector m_LocalPos
Определения ScriptedLightBase.c:37
Object m_Parent
Определения ScriptedLightBase.c:36
vector m_LocalOri
Определения ScriptedLightBase.c:38
class LOD Object
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
proto native Widget GetParent()
Get parent of the Effect.
Определения Effect.c:407

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

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