Day and Night

I was wondering if i can switch attributes by real time. For example... I have a scenery that is in day time. I would like it if it is past 8pm in real time the scenery turns night time.

Comments

  • ArmellineArmelline Member, PRO Posts: 5,421

    There is a game attribute, game.Clock.Hour that lets you see what hour it is. This lets you decide if you want to use scenery x or scenery y. Attaches is a demo that shows a blue background between 6am and 6pm, and a grey one between 6pm and 6am.

  • @armelline yea i saw that. because it made me confused if they are asking in military hours or not. because how would it know if it is am or pm

  • ArmellineArmelline Member, PRO Posts: 5,421

    24 hour clock, so if that attribute returns 17 that means 5pm, if it returns 5 that means 5am.

Sign In or Register to comment.