meshboy Posted January 25, 2012 Report Posted January 25, 2012 Hi!I can set all my datarefs but not this one.This is the one controlling the visibility in X-Plane.i am using the method:XPLMSetDatafthis method sets a float and reading from the manual you set this in meters. (still a float value).this is how my line of code is but it always sets the visibility to 0.1, the lowest value there is.XPLMSetDataf(XPLMFindDataRef("sim/weather/visibility_reported_m"),11.5);Any suggestions?This is the last dataref for weather i need but this one i really need.
Kieran Posted January 25, 2012 Report Posted January 25, 2012 um, to me it looks like your setting the visibility to 11.5 M, which would be why it is defaulting to 0.1 nm.
meshboy Posted January 25, 2012 Author Report Posted January 25, 2012 Thanks!I realy messed it up, i was locked on the values i got in XP instead of the manual.This works perfectly now, setting 8000meters gives me = 5.0sn
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now