Moving Object - Flashing Disappearing HELP!

Post » Sun May 05, 2013 3:11 am

Hoping someone can help me figure out a strange problem I'm having.

In wet weather conditions (i.e. rain, storm, etc.), I want there to be puddles that slowly rise from the ground for a mod I'm working on. And when the weather is dry/rain stops, I want the puddles to slowly disappear.

I'm a total noob when it comes to programming in general and especially Papyrus, but Cipscis has been super helpful in getting me started with a script, which I will include below. So far, it is working out good, where rainy weather causes the puddle to rise (Z position increases) up to a certain point, then when the weather is dry the puddle goes down (Z position decreases) and stops just below the ground (hidden). I also have the ability to control the frequency at which the updates occur, as well as add an extra effect (puddle splashes object) on top of the puddle object, which moves with the puddle.

The one problem I'm having and hoping someone can help us figure out is that every time the update occurs, the puddle object "flashes", meaning that it disappears and then reappears before it changes Z position. This happens every single update, regardless if the update frequency is every 10 seconds, every 1 second, or whatever I set it to. The "flash" happens quickly, like in milliseconds, but it's definitely noticeable.

I want the puddle to transition smoothly up or down, but not disappear/reappear. Here is the script that is assigned to the puddle object in the CK. Any ideas on how to prevent that?

Spoiler

User avatar
Emmie Cate
 
Posts: 3372
Joined: Sun Mar 11, 2007 12:01 am

Post » Sun May 05, 2013 11:36 am

Instead of using SetPosition, maybe try TranslateTo.

User avatar
Stephanie I
 
Posts: 3357
Joined: Thu Apr 05, 2007 3:28 pm


Return to V - Skyrim