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

◆ RefreshState()

void RefreshState ( )
protected

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

332 {
334 {
335 return;
336 }
337
338 if ( GetGame().IsServer() )
339 {
340 // item is owned by player
341 if ( GetHierarchyRootPlayer() != NULL && m_AnimationPhaseGrounded != "" )
342 {
343 SetAnimationPhase( m_AnimationPhaseSet, 1 );
345 {
346 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
347 }
348 SetAnimationPhase( m_AnimationPhaseGrounded, 0 );
349 }
350 // item is set active
351 else if ( IsActive() )
352 {
353 if ( m_AnimationPhaseGrounded != "" )
354 {
355 SetAnimationPhase( m_AnimationPhaseGrounded, 1 );
356 }
358 {
359 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
360 SetAnimationPhase( m_AnimationPhaseSet, 0 );
361 }
362 }
363 // item is inactive and not owned by player (on the ground)
364 else if ( IsInactive() )
365 {
367 {
368 SetAnimationPhase( m_AnimationPhaseGrounded, 1 );
369 }
371 {
372 SetAnimationPhase( m_AnimationPhaseSet, 1 );
373 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
374 }
375 }
376 }
377 }
string m_AnimationPhaseTriggered
Определения TrapBase.c:34
bool m_WasActivatedOrDeactivated
DEPRECATED Used for explosive traps to prevent detonation after destroying through disarm action.
Определения TrapBase.c:30
string m_AnimationPhaseGrounded
Определения TrapBase.c:32
string m_AnimationPhaseSet
Определения TrapBase.c:33
bool IsInactive()
Определения TrapBase.c:151
bool IsActive()
Определения TrapBase.c:146
proto native CGame GetGame()

Перекрестные ссылки GetGame(), IsActive(), IsInactive(), m_AnimationPhaseGrounded, m_AnimationPhaseSet, m_AnimationPhaseTriggered и m_WasActivatedOrDeactivated.

Используется в Disarm(), EEHealthLevelChanged(), EEItemAttached(), EEItemDetached(), EEItemLocationChanged(), OnItemLocationChanged(), OnStoreLoad(), SetActive(), SetInactive() и SnapOnObject().