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

◆ OnItemLocationChanged() [6/6]

override void ItemBase::OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected

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

676 {
677 super.OnItemLocationChanged( old_owner, new_owner );
678
679 if ( GetGame().IsServer() )
680 {
681 // throw trap from vicinity if the trap does not need installation ( action required )
682 if ( new_owner == NULL && m_NeedInstalation == false )
683 {
684 SetActive();
685 }
686 else if ( old_owner == NULL && new_owner != NULL )
687 {
688 if ( m_IsFoldable )
689 {
690 Fold();
691 }
692 else
693 {
694 SetInactive();
695 }
696 }
697
698 if (m_YieldItemIdx != -1) //resets sound effect idx
699 {
700 m_YieldItemIdx = -1;
701 SetSynchDirty();
702 }
703 }
704 }
int m_YieldItemIdx
Определения TrapSpawnBase.c:28
void SetInactive()
Определения TrapSpawnBase.c:382
void Fold()
Определения TrapSpawnBase.c:247
void SetActive()
Определения TrapSpawnBase.c:338
bool m_NeedInstalation
Определения TrapSpawnBase.c:7
bool m_IsFoldable
Определения TrapSpawnBase.c:3
proto native CGame GetGame()

Перекрестные ссылки Fold(), GetGame(), m_IsFoldable, m_NeedInstalation, m_YieldItemIdx, SetActive() и SetInactive().