Creature Unity Events
Posted: Wed Mar 13, 2019 10:08 pm
Dear Chong,
I am currently adding some events to trigger colliders and sounds in my animations. My exported creature project holds 8 animations, two of which have events attached to them. In unity I have inherited my character class from CreatureGameAgent. Here I subscribe my function to the event system setup in CreatureGameController. My function triggers a box collider, which is a damage trigger. However, my function is called during every event trigger. Can I select which event trigger, triggers my function. For example 'event0' triggers the event and 'event1' does not. Hope that makes sense, and i'm probably just missing something simple.
Thanks for your help,
Pete
I am currently adding some events to trigger colliders and sounds in my animations. My exported creature project holds 8 animations, two of which have events attached to them. In unity I have inherited my character class from CreatureGameAgent. Here I subscribe my function to the event system setup in CreatureGameController. My function triggers a box collider, which is a damage trigger. However, my function is called during every event trigger. Can I select which event trigger, triggers my function. For example 'event0' triggers the event and 'event1' does not. Hope that makes sense, and i'm probably just missing something simple.
Thanks for your help,
Pete