Руководство по графу анимаций/Уведомление о событии

Материал из CryWiki Russia

Версия от 15:59, 23 мая 2011; DCamer (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Event notification

This tutorial will demonstrate how to play effects or facial animations synchronized with an animation using 'Extra Properties' of states in the animation graph.

  • Create a view and a state for this tutorial.

CryEngine AGT EventNotification agtutor3 view state.png

  • Prepare an input for testing.

CryEngine AGT EventNotification agtutor3 input.png

  • Set usual state properties and add AttachmentEffect

CryEngine AGT EventNotification agtutor3 playeffect.png

  • The 'AttachmentEffect' is for spawning an particle effect on a character attachment.
  • Your character should have an attachment for this

CryEngine AGT EventNotification agtutor3 bone attachment.png

  • And a particle effect

CryEngine AGT EventNotification agtutor3 particles.png

  • Set 'Extra Properties'

CryEngine AGT EventNotification agtutor3 attachment effect.png

  • Set 'Attachment Name' to the name of the bone attachment from the character.
  • Set 'Particle effect' to the path of the particle effect we chose. The path should be a form of libraryname.itemname.effectname.
  • Check it working

CryEngine AGT EventNotification agtutor3 check result.png

  • ag_debug _target_entity_
  • ag_logeffects 2
  • This is a console command for logging the attachment effect.
  • ag_stance test_effect
  • You can check the effect is played properly with the animation.