Jump to content
Sign in to follow this  
Guest HSIMAN

GMAX* HOW DO I MAKE AN OBJECT SHOW ONLY AT NIGHT?

Recommended Posts

Guest HSIMAN

Hi allI am sure it is possible to have an object that only displays at night.any help around?thankschristian

Share this post


Link to post
Share on other sites

You need to change the ASM source for that. I tried to explain it here:http://www.scenerydesign.org/modules.php?n...rticle&artid=22In your case you can probably put the IFIN1 command in the yourfile.asm file. Something like this:[tt]OBJECT_0_START label word IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767 IFIN1 OBJECT_0_FAIL, tod, 2, 4 ADDOBJ OBJECT_0_SCALE SHADOW_CALL OBJECT_0_SCALEOBJECT_0_FAIL label BGLCODE[/tt]Note that I have added the second IFIN1 line. A value between 2 and 4 means the object will be shown at dusk/dawn and night.


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

Share this post


Link to post
Share on other sites
Guest HSIMAN

Thank you ArnoIt worked fineregardschristian

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...