Sign in to follow this  
Guest HSIMAN

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

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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.

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