.granQ. 0 Posted September 26, 2004 Working on a cockpit and wonders if its true that it works max to 304? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class IndicatorAltRadar { // max for this indicator is 1000 feet (i.e. 304m) // note: this is actualy Baro altitude (name is wrong) selection = "alt"; axis = "osa_alt"; angle = -360; min = 0; max = 304; }; Want to have angle -270 and then max should be 900 meters, is it impossible or just me thats stupid? Share this post Link to post Share on other sites
nephilim 0 Posted September 27, 2004 isnt it in example?? Share this post Link to post Share on other sites
Footmunch 0 Posted September 27, 2004 If you have an angle of -270, then when the height goes from 304 to 305, the needle will 'jump' the last 90 degrees. If you want a 'thousands' needle, you have to script it yourself: something like: In config.cpp: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Animations {  class IndicatorThousandsAlt  {     selection = "alt";axis = "osa_alt";     rotationperiod = 0.001;     angle0 = 0;angle1=2.5;  }; And a script (kicked off by the init EH) altind.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _plane = _this select 0 #MainLoop ?(!alive _plane): exit _alt = getpos _plane select 2 _phase = _alt /10000 _plane animate["IndicatorThousandsAlt", _phase] ~.3 goto "MainLoop" Share this post Link to post Share on other sites
.granQ. 0 Posted September 29, 2004 thanks, the "jumping needle" was very annoying, guess it will be a animation then. Share this post Link to post Share on other sites