Hello guys. Just found a bug, while was making functionality for my door.
When Set New Time fires in construction script, it also fires a timeline in EventGraph once after compiling a BP.
Here is the video:
Versions: 4.6.1 and 4.7.2
Hello guys. Just found a bug, while was making functionality for my door.
When Set New Time fires in construction script, it also fires a timeline in EventGraph once after compiling a BP.
Here is the video:
Versions: 4.6.1 and 4.7.2
Hi AlFlakky,
This is intended functionality. When changing the ‘NewTime’ value you are adjusting where the timeline will start playing from. When this happens the Timeline will always fire it’s update to make sure whatever you are moving/manipulating is in the correct starting position.
Also, the reason that you can’t rotate the Component in the Viewport is because you have already set it using the Construction Script. You can see this reflected if you enter a larger number into the ‘NewTime’ value (ex. 20).
Cheers,
TJ
Also, the reason that you can’t rotate the Component in the Viewport is because you have already set it using the Construction Script. You can see this reflected if you enter a larger number into the ‘NewTime’ value (ex. 20).
I haven’t setup the rotation in CS. I do it after the timeline in EventGraph. And when I try to rotate it, timeline fires and sets the rotation back to 0.
This way i’m not able to setup the initial rotation of my door, because timeline fires every time I do it.
The timeline is firing because the Construction Script is telling it too.
In your video, you are using the ‘SetNewTime’ node to set the ‘NewTime’ value of the ‘DoorOpen’ timeline inside of the CS. This sets the initial rotation of the door for you. Which is why when you disconnect the ‘SetNewTime’ node you are then able to rotate the door freely in the viewport.
What exactly are you trying to accomplish with setting the door bp up like this? Perhaps we can help you find another way to do it.
Hello TJ. I know, how to do this another way, thank you. But this is pretty weird.
Sometimes it can prevent from doing something. For example, if I have to setup timeline playback position, but do not setup the rotation it self, because timeline will shoot later, after I do something ingame. This way I should manually setup the rotation with another Set Rotation node, which is quiet inconvenient .