Jump to content
Sign in to follow this  
granQ

animation type="hide" doesn't function like I want

Recommended Posts

What I want to do is to have some covers for the intake to show when the airplane is parked and not been used. Once it been used once I don't want them to come back on magically. Thats why I thought to use a combination of fuel and hide. However I got the reverse effect, they are not hidden until I start the engine or when I tweaked its empty of fuel. So any ideas how I can hide it?

class intake_cover

{

type="hide";

source="fuel";

minValue=0.999999;

maxValue=1;

hideValue = 0;

selection="intake_cover";

};

Share this post


Link to post
Share on other sites

EDITH: wrote BS, be back in a few.

:EDITH 2:

ok...sorry for that.

where are we? Ah yes, i see. Whats the outcome if you switch the values of minValue with hideValue?

Edited by [FRL]Myke

Share this post


Link to post
Share on other sites

did that.. effect:

No cover visible, get in plane and start engines. They are shown.

So exactly what i want but "reversed"..

Share this post


Link to post
Share on other sites

didn't work, assume fuel is "init" on what it start like.

maybe have to use cabin or some other animation source.. :/

Share this post


Link to post
Share on other sites

i have no experience with configure planes, but as i understand it, wouldnt be rotor the logic choice as animationsource?

Edited by Scars09
messed up rotor and rotation

Share this post


Link to post
Share on other sites

Or use an Event Handler and a one-shot script to a USER animation.

@Scars

Yeh, but he wants it animating ONLY the first time the engine starts.

Share this post


Link to post
Share on other sites

clamp with treshold i would say. but you right, event handler and a useranimation would be easier to do

Share this post


Link to post
Share on other sites

actually even easier, did it as an selection (just wanted it hidden) and settexture. New condition is "If plane is locked and nobody is inside".. which should be 99% missions when the plane is just put in at an airbase with no intention being used.

If the mission creater wants to unlock it ingame and can script it, i think he can understand that as well with some documentation. Thanks for your help anyway.. :)

Annoying thing is that now i wish to use the "hide" type for another thing (lights when going reversed connecting to wheels).. but with my luck I think have to wait until I get home to a proper computer.

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  

×