Jump to content
drahcir_dier

Object animation moves instantly to endpoint

Recommended Posts

I have modelled an ammunition box with an opening lid; When I preview the animations in Bulldozer, everything works exactly as expected, however then I put the object in the game the animation switches instantly to the end point, without the transition. The animation source is defined thus:

 

class AnimationSources {

    class lid_source
    {
        source 	   = user;
        initPhase  = 0;
        animPeriod = 2.5;
    };

};

I can force the lid to an intermediate position using:

_box animateSource ['lid_source', 0.5];

and I can manually implement an animation using:

[_box] spawn {
	
    _val = 0;

    while { _val <= 1 } do {
        _box animateSource ['lid_source',_val];  
        _val = _val + 0.01;
        sleep 0.01;
    };
                     
};

but in all cases the animateSource statements move instantly to the specified source value.

 

Has anyone encountered this behaviour before? ... I have copied code from other objects in the same project that work flawlessly so I'm a bit stumped. The box is modelled as an Item_Base_F type ... Do some of the base classes not support animations in the same way as others?

 

 

Share this post


Link to post
Share on other sites

You can try classing it under house_f

 

but if that doesn’t work post your model config and main config 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×