January 4, 200323 yr 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
January 4, 200323 yr Commercial Member 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).ArnoMember Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a] Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
January 5, 200323 yr 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.
January 6, 200323 yr 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]
January 6, 200323 yr Commercial Member 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.ArnoMember Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a] Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
January 6, 200323 yr >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". ;)
Create an account or sign in to comment