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

◆ RegisterAnimEvents()

void DayZCreature::RegisterAnimEvents ( )
inlineprotected

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

253 {
254 if(!RegisterAnimationEvent("Sound", "OnSoundEvent"))
255 {
256 Print("Error registering anim. event (Sound)");
257 }
258
259 if(!RegisterAnimationEvent("SoundVoice", "OnSoundVoiceEvent"))
260 {
261 Print("Error registering anim. event (SoundVoice)");
262 }
263
264 if(!GetGame().IsDedicatedServer())
265 {
266 if(!RegisterAnimationEvent("Step", "OnStepEvent"))
267 {
268 Print("Error registering anim. event (Step)");
269 }
270 }
271
272 if(!RegisterAnimationEvent("Damage", "OnDamageEvent"))
273 {
274 Print("Error registering anim. event (Damage)");
275 }
276 }
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки GetGame(), Print() и RegisterAnimationEvent().

Используется в DayZCreatureAI().