Руководство по графу анимаций/Уведомление о событии
Материал из 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.
- Prepare an input for testing.
- Set usual state properties and add AttachmentEffect
- The 'AttachmentEffect' is for spawning an particle effect on a character attachment.
- Your character should have an attachment for this
- And a particle effect
- Set 'Extra Properties'
- 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
- 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.