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

◆ OnItemLocationChanged() [6/6]

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

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

646 {
647 super.OnItemLocationChanged( old_owner, new_owner );
648
649 if ( GetGame().IsServer() )
650 {
651 // throw trap from vicinity if the trap does not need installation ( action required )
652 if ( new_owner == NULL && m_NeedInstalation == false )
653 {
654 SetActive();
655 }
656 else if ( old_owner == NULL && new_owner != NULL )
657 {
658 if ( m_IsFoldable )
659 {
660 Fold();
661 }
662 else
663 {
664 SetInactive();
665 }
666 }
667
668 if (m_YieldItemIdx != -1) //resets sound effect idx
669 {
670 m_YieldItemIdx = -1;
671 SetSynchDirty();
672 }
673 }
674 }
int m_YieldItemIdx
Определения TrapSpawnBase.c:28
void SetInactive()
Определения TrapSpawnBase.c:372
void Fold()
Определения TrapSpawnBase.c:247
void SetActive()
Определения TrapSpawnBase.c:328
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().