Sign in to follow this  
phjvh

Rain Parameter

Recommended Posts

Howdy all!Is there a parameter or a flag that one can pull from MSFS that indicates that the sim thinks it's raining or snowing? Something must tell MSFS that it needs to turn on/off the Rain Effect on the Winshield so I'm guessing there is a flag or parameter someplace to tell the sim to do that. I'm trying to pass that on in a gauge such that something occurs when it's actually raining or snowing and does not occur when it isn't actually raining or snowing. I looked through all the params, tokens, events, units, commands etc. from the SDK and came up empty.Any help would be appreciated.R/TC2

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

HimaybeWINDSHIELD RAIN EFFECT AVAILABLEAMBIENT PRECIP STATEYou could also have a look at http://www.fs2x.com/ in the TUT section they have a listing of all the 2004 VarscheersWozza

Share this post


Link to post
Share on other sites

Thanks, Wozza! That sounds right (Ambient Precip State) and I'll check it out this evening. I missed that one in Arne's list, but the param does in fact show up in the environmental section of the SDK listing of params.Regards,TC2

Share this post


Link to post
Share on other sites

Hi Wozza, thanks for the advert :()%((A:RADIO HEIGHT, feet) 30 < if{ (A:SURFACE CONDITION, enum) } els{ 24 } )%{case}%{:0}DRY %{:1}WET %{:2}ICY %{:3}SNOW%{:24} %{end}A line from one of my gauges. It shows the enum of surface conditions,that is,0 is dry1 is wet2 is icy3 is snownick

Share this post


Link to post
Share on other sites

AMBIENT PRECIP is what is used in the model's XML code to trigger the rain/snow effects on the windshield.

Share this post


Link to post
Share on other sites

Bill is correct, as was Wozza - thanks fellas. I successfully used AMBIENT PRECIP STATE in my application. The result is a bitwise representation of precipitation. Those I've found:Clear (no precip) = 00000010 = 2Rain = 00000100 = 4Snow = 00001000 = 8I used the call (A:AMBIENT PRECIP STATE,number) and was able to use the result to do what I needed.Thanks all, for your replies.R/TC2

Share this post


Link to post
Share on other sites

No problem... I've used AMBIENT PRECIP STATE for any number of things for which MS probably never imagined... ;)Like, having your line people don rain slickers when raining, and parkas when snowing? ;)

Share this post


Link to post
Share on other sites

HiNP Nick ;) though opening the XML box was a big mistake on my behalf :DThis little discussion got me thinking it may be fun to apply an effect so when it rains the wheels throw up spray should be doable :)CheersWozza

Share this post


Link to post
Share on other sites

Hmm that was easier than I thought,but its only good for tail draggers a tri gear would need 2 unused light circuits :)Wozza(A:AMBIENT PRECIP STATE,number) 4 == (A:RIGHT WHEEL RPM,rpm) 80 > && if{ (A:Light Cabin,number) 1 < if{ (>K:TOGGLE_CABIN_LIGHTS) } } els{ (A:Light Cabin,number) 0 > if{ (>K:TOGGLE_CABIN_LIGHTS) } }

Share this post


Link to post
Share on other sites

Hi Wozza, all my freeware and payware throw up spray with rain or snow. Chance of a quick plug, I've attached a pic of the F-117A showing where I've added the spray effect so that you see it from the wheels, but there is also a spray pattern following along for some distance down the runway. I thought it looked more realistic this way.To switch on the effect I always use (A:SURFACE CONDITION, enum).Others are promoting (A:AMBIENT PRECIP STATE,number). Are there advantages using the latter, as they both appear to produce the same thing, although I have never used AMBIENT PRECIP STATE?nick

Share this post


Link to post
Share on other sites

Looks better than mine :) hate effects just as much as xml lol CheersWozza

Share this post


Link to post
Share on other sites

Hi,I know only a few of the surf. cond, enums like:0=DRY, 1=WET, 2=ICY and 3=SNOWWhat are the others if there are any?Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi Jan, I think that's the full list,Did you mean surface type? There's a lot of these.nick

Share this post


Link to post
Share on other sites

Nick,Just the conditions, i am aware of the 25 types.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this