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

◆ RegisterAnimEvents()

void DayZCreature::RegisterAnimEvents ( )
inlineprotected

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

295 {
296 if(!RegisterAnimationEvent("Sound", "OnSoundEvent"))
297 {
298 Print("Error registering anim. event (Sound)");
299 }
300
301 if(!RegisterAnimationEvent("SoundVoice", "OnSoundVoiceEvent"))
302 {
303 Print("Error registering anim. event (SoundVoice)");
304 }
305
306 if(!GetGame().IsDedicatedServer())
307 {
308 if(!RegisterAnimationEvent("Step", "OnStepEvent"))
309 {
310 Print("Error registering anim. event (Step)");
311 }
312 }
313
314 if(!RegisterAnimationEvent("Damage", "OnDamageEvent"))
315 {
316 Print("Error registering anim. event (Damage)");
317 }
318 }
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().