Sign in to follow this  
Guest

What in this code tells me the altitude?

Recommended Posts

Hello,Here's a part of code I do not understand completely. I think I get the most out of it already, but I desperately need to know what part of the code that tells the altitude of the object? I know almost certainly that it is in this code, for various reasons. :); Part: Light.Beacon.9:Part22IfVarRange( :nolight_22 7c0 2384 2384 )IfVarAnd( :correct_direction_22 386 8000 )Jump( :nolight_22 ):correct_direction_22Dwx( af c636 4392 df03 44bc 7b33 420c 0 bf80 0 0 ef22 3304 8608 b1af 7d37 3f7c 237 be29 1c6b b303 237 be29 7d37 bf7c )Dwx( b2 0 0 0 0 0 0 0 9558 67 0 0 0 0 e3e3 ffe3 0 0 0 0 0 0 )Dwx( ae ):nolight_22Return

Share this post


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

That code looks familiar :)But I wasn't able to find the altitude in it (it didn't even show a light when I tested it).Maybe it is easier if you use the SCASM Light() command to generate you lights? Then you know what all code is and can get the right altitude (and yes that command gives a greater range then the normal dots).Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Share this post


Link to post
Share on other sites

I got it already from another source. It is in the first Dwx-command line.Arno, by the way, that code is (unusually ;)) not your code.

Share this post


Link to post
Share on other sites

Hello,This is the Scasm code generated by the bunch of Dwx() commands on your list:======================== IfVarRange( :L0D0 7C0 2384 2384 ) IfVarAnd( :L070 386 8000 ) Jump( :L0D0 ):L070 Transform_Mat( 293.549 1510.97 35.1203 -1 0 3.09511e-08 -5.10841e-09 0.986286 -0.165048 -3.05267e-08 -0.165048 -0.986286 ) Light( m 0 0 0 0 6788440 0 0 E3 227 227 255 0 0 0 ) TransformEnd:L0D0=============================The altitude is set on the Transformation() call you use and not in the lights, actual offset values are:X= 293.549Z= 1510.97 ( = Altitude )Y = 35.1203Cheers,Rafael Sanchez[a href= http://www.fsnova.com ]http://www.fsnova.com/images/NsAnimation1.gif [/a]

Share this post


Link to post
Share on other sites

>I knew it was not my code :), but you already asked me to >change the color before and other things. So it looked >familair to me :D. >>Arno >


Member Netherlands 2000 Scenery Team >[a >href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]Yup, that is the strange thing FSDS spits out and which some people might call "code". ;)

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