September 22, 200223 yr Hi All,perhaps it's a rather stupid question, but I can't anyway figure out the answer, at the moment....Does anyone know which is the equivalent of the old '28C' SCASM variable in BGLC language?I'm trying to make some Gmax-built lights to switch off at day, I know I've to use the IFIN1 command (equivalent to the SCASM's 'IfVarAnd), but I don't know how the '28C' variable has to be written in BGLC.Can anyone help?Thanks in advance
September 22, 200223 yr Hi,Command for switching lights off looks as follow: IFIN1 LBL1ms, tod, 2,4 ; ****lights procedure..... LBL1ms label BGLCODE BGL_END BGL_RETURN Mark
September 22, 200223 yr Author Commercial Member 28C is still 28C :)I think you need to write it hexidecimal as 028ChArnoMember 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
September 22, 200223 yr Thanks Mark and Arno,Arno, happy to hear several variables are still the same in BGLC too, just have to write them in hexadecimal.Mark, where did you found the 'LBL1ms, tod' instruction?I guess 'tod' is 'time of day', but I never found an 'LBL1ms' instruction into the FS Scenery SDK.Is there any document I should know and I don't know still?Thanks once more
September 23, 200223 yr Author Commercial Member LBL1ms is the name of the label you are jumping to when the time of day doesn't match what you want (so isn't between 2 and 4 in the example). You will have to add this label yourself (and of course you can use any name you like, as long as it is unique).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
September 23, 200223 yr Argh........:-hah....so the variable is just 'tod', and the values are the same used with SCASM programming.Of course, once made clear that 'LML..etc.' is simply a label, I know that I can name it as I like.Once more, thanks!
September 23, 200223 yr Author Commercial Member tod is just an alias for 028ch, just to make the code a bit more readable. It is changed into the hex value of the variable by BGLC.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
Create an account or sign in to comment