Jump to content
Sign in to follow this  
[aps]gnat

Use BIS variables - Thrust, RPM, randomizer etc

Recommended Posts

.

Has anyone worked out a way to use these default variables for animations?

In the default config we find variables bing used to manage things like Sound frequency and volume etc

Variables include;

- randomizer

- thrust

- rpm

- speed

- engineon

HUD's use variables like;

- altitudeAGL

- vspeed

- targetDist

- velocity

- fuel

Tried things like below in the Config and then using UserThrust as a source in the model.cfg ..... but it didn't work.

class AnimationSources: AnimationSources

{

class UserThrust

{

source = "thrust";

};

};

Run out of ideas. Need desperately to pass these variables through.

Share this post


Link to post
Share on other sites

It seems that those data sources are exclusively programmed for the purpose theyr in, even if they share the same name.

Only way i found myself so far was to work with user anims and script driven animations. As example, to animate the HOTAS throttle stick i've used userInput as data source.

model.cfg:

		class hotas_throttle: Rotation {
			source="user";
			type="rotation";
			selection="HOTAS_Throttle";
			axis="axis_hotas_throttle";
			memory=0;
			animPeriod=0.001;
			sourceAddress="clamp";
			minValue=0;
			maxValue=2;
			angle0=0;
			angle1="rad 55";
		};

Anim control script (partial):

_throttle = (inputAction "HeliUp") + (inputAction "HeliThrottlePos");
_this animate ["hotas_throttle", _throttle];

Almost all anims i've made script driven since A2 doesn't allow much customization of the data sources.

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  

×