Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

sdk test bed (time system)

arion

Member

Heres my problem; i suck with coding and scripting. I want to make it so that at a certain time during the day, a switch will come on, we'll call it "late". when this comes on, it activates the autorun event on all the NPC's that makes them walk towards their homes, and upon entering, turn on an autoswitch to disapear. using the same method to make new people exit their houses at night.
and then in the morning (for example 6 am) the NPC's return outdoors, because the switch was thrown again.

I don't know if this is already implemented, or if anyone else has asked about it, but it would be appreciated if someone could clear it up for me. ^_^

I'm trying to make it so the NPC's are really interactive, AND actually go to sleep instead of staying up for 365 days a year. This is the main reason i thought to use the time script.

Thanks for any help recieved.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top