Wintermute Engine Forum

Wintermute Engine => Bug reports => Fixed => Topic started by: Derrek3D on December 09, 2007, 03:51:53 PM

Title: Animation Events Problem
Post by: Derrek3D on December 09, 2007, 03:51:53 PM
I have a problem with my 3D actor's animation events. My event handlers are being called twice: once at the correct frame and the other after the animation ends. Is this a known issue/bug or am I doing something wrong?

My animation is defined like this in my actor's act3d file:

Code: [Select]
ANIMATION
{
    NAME="DoSomething"

    EVENT
    {
        FRAME = 50
        NAME = "DoSomething"
    }
}

And in the actor's script I have a:

Code: [Select]
on "DoSomething"
{
    Game.Msg("DoSomething");
}

The game outputs the "DoSomething" to the screen at the correct frame during the animation and then it outputs it again after the animation ends. Any ideas?
Title: Re: Animation Events Problem
Post by: Mnemonic on December 09, 2007, 04:25:32 PM
It's a bug introduced in the last version. The event is incorrectly triggered again when transitioning to another animation. I fixed it, thanks for reporting.
Title: Re: Animation Events Problem
Post by: Derrek3D on December 09, 2007, 04:37:53 PM
Ok, great! Thanks for fixing it.