Richarizard Posted November 24, 2010 Share Posted November 24, 2010 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 More sharing options...
Hickory Posted November 24, 2010 Share Posted November 24, 2010 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 More sharing options...
Richarizard Posted November 24, 2010 Author Share Posted November 24, 2010 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. (: Link to comment Share on other sites More sharing options...
Hickory Posted November 24, 2010 Share Posted November 24, 2010 You're welcome. and good luck with your mod. :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts