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

◆ CheckFSMState()

void HumanInventoryWithFSM::CheckFSMState ( )
inlineprotected

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

135 {
136 if (GetEntityInHands())
137 {
138 if (!m_FSM.IsRunning() || GetCurrentStateID() == HandStateID.Empty) //forcing when not running or in stable state only
139 m_FSM.SetCurrentState(m_Equipped);
140 }
141 else
142 {
143 if (!m_FSM.IsRunning() || GetCurrentStateID() == HandStateID.Equipped) //forcing when not running or in stable state only
144 m_FSM.SetCurrentState(m_Empty);
145 }
146 }
HandStateID
states
Определения Hand_States.c:4
proto native EntityAI GetEntityInHands()
ref HandFSM m_FSM
Определения HumanInventoryWithFSM.c:7
ref HandStateBase m_Equipped
Определения HumanInventoryWithFSM.c:9
int GetCurrentStateID()
Определения HumanInventoryWithFSM.c:169
ref HandStateBase m_Empty
hand slot state machine
Определения HumanInventoryWithFSM.c:8

Перекрестные ссылки GetCurrentStateID(), HumanInventory::GetEntityInHands(), m_Empty, m_Equipped и m_FSM.

Используется в DayZPlayer::OnItemInHandsChanged().