Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What in this code tells me the altitude?

Featured Replies

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

  • 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).Arno


Member 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

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.

Interesting but which set of hex (I assume) is the altitude??

Bill Sieffert

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]

  • 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.Arno


Member 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

>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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.