Jump to content

Object hiding with scripts?


Richarizard

Recommended Posts

Hey,

I'm trying to write a script, that when attached to an object, will only show it during certain time (eg. sunday 6am - sunday 5pm).

I was wondering if anyone could give me a few pointers on how to go about this?

 

Also i would like to be able to hide static objects at certain times as well, but i don't know how to even begin with that as you can't attach a script to a static object.

 

Any help would be awesome,

Cheers! (:

Link to comment
Share on other sites

Assign the static object/s a hidden parent object with a permanent ref. Enable/disable the parent in your script. You only have to look at player houses and the buyable upgrades to get the idea -- as a player buys upgrades, they are enabled in the house.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...