Jump to content

Recommended Posts

Posted

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! (:

Posted
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.
Posted

Ah, that's excellent. Thanks a lot that's a big help,

Never even thought about looking at player houses, but now it seems obvious,

 

Cheers. (:

Posted
You're welcome. and good luck with your mod. :thumbsup:
  • Recently Browsing   0 members

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