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

◆ DetachFromParent()

void EntityLightSource::DetachFromParent ( )
inlineprivate

Detaches this light from its parent entity.

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

196 {
197 if (!m_Parent)
198 {
199 m_Parent = Object.Cast( GetParent() );
200 }
201
202 if (m_Parent)
203 {
204 if ( !m_Parent.ToDelete() && !ToDelete() )
205 {
206 m_Parent.RemoveChild(this);
207 }
208 }
209
210 m_Parent = null;
211 m_LocalPos = Vector(0,0,0);
212 m_LocalOri = Vector(0,0,0);
213 }
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:422

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

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