Jump to content
Sign in to follow this  
[frl]myke

Accessing animation sources in scripts

Recommended Posts

Hi all,

i wonder if it is possible to get access to animation source data from a script. With anmation sources i mean those which are usually used in the model.cfg to animate parts of a model. I.e. to make an animated horizon, sources would be horizonBank and horizonDive. Full list of animation sources can be found here: http://community.bistudio.com/wiki/Model_Config

I know, some can be covered with scripting commands, like for the above example vectorDir and vectorUp. But there are some that can't be catched this way, source "rpm" is such a candidate.

So is there a way to read out easily the values of these sources?

Share this post


Link to post
Share on other sites

If you have an object that has an animation using the wanted source, it should be possible to read out the state with animationPhase command.

Share this post


Link to post
Share on other sites
I know, some can be covered with scripting commands, like for the above example vectorDir and vectorUp. But there are some that can't be catched this way, source "rpm" is such a candidate.

So is there a way to read out easily the values of these sources?

Edit:

Scratch what I just said, you have to use the animation class name from model.cfg:

Player SideChat Format ["Phase %1",_vehicle AnimationPhase "IndicatorRPM"]

Edited by UNN

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
Sign in to follow this  

×