Making Placed Objects Appear at a time of Day

Post » Fri Oct 18, 2013 1:27 am

Is it possible to make a placed custom object, like a book or weapon, appear in it's location only between certain hours of the day, such as between 22:00 and 06:00 hours?

If that can be done, can it be ensured that the object does not suddenly disappear if the player is there and it happens to turn to 06:01 AM?

Cheers!

~.~

User avatar
Jack Bryan
 
Posts: 3449
Joined: Wed May 16, 2007 2:31 am

Post » Fri Oct 18, 2013 2:04 am

There is a "Hill House" mod that enables a statue in the front yard to be one thing until a certain hour and then the statue changes. I imagine you can download that mod and see how they did it if no one gives you instructions.

As far as the "not making it change if you are standing in front of it" I can't tell you. The Hill House changing statue will change while you are there. Sort of looks cool.

User avatar
Avril Louise
 
Posts: 3408
Joined: Thu Jun 15, 2006 10:37 pm

Post » Fri Oct 18, 2013 11:57 am

Most likely you will need to do a couple of things,

  1. Place an Xmarker with a script on it that registers for game updates and check for OnUpdateGameTime events that suite your timing to enable and disable your vanishing item. You will need the item included as a property in the script and on the update event check IsNearPlayer, this should stop it from vanishing in front of the player.
  2. Put a script on the item with say an OnActivate event that references the xmarker and then disables it, that way if the player picks it up it will no longer do the vanishing routine.

Hope this works out for you I haven't actually set up a case like this before but it's what I would do to start with.

User avatar
pinar
 
Posts: 3453
Joined: Thu Apr 19, 2007 1:35 pm


Return to V - Skyrim