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

◆ PluginDayzPlayerActionCallback()

void HumanCommandActionCallback::PluginDayzPlayerActionCallback ( )
inlineprotected

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

94 {
95
96 //Print("Action callback created");
98 //RegisterAnimationEvent("ActionExec", 1); // really weird id
99
100 if (!m_AnimEventMapping)//making sure to only do once
101 {
102 m_AnimEventMapping = new set<string>();
103 m_AnimEventMapping.Insert("ActionExec");
104 m_AnimEventMapping.Insert("SoundWeapon");
105 m_AnimEventMapping.Insert("SoundVoice");
106 m_AnimEventMapping.Insert("SoundAttachment");
107 m_AnimEventMapping.Insert("Sound");
108 }
109
110
111 foreach (int index, string eventName: m_AnimEventMapping)
112 RegisterAnimationEvent(eventName, index);
113
114 EnableStateChangeCallback(); // enable this to get OnStateChange callbacks
115
117 }
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
static ref set< string > m_AnimEventMapping
Определения PluginDayzPlayerDebug.c:92
proto native float GetWorldTime()
proto native void EnableCancelCondition(bool pEnable)
proto native void EnableStateChangeCallback()
enables state change callback OnStateChange