Delay with Pointlights
Hi all. I followed a tutorial in youtube called "Adding Toggling in Level Blueprint." But now, the new version UE 4.7 have some differences like the new button "possess" you have to select after selecting simulate in order to make it work.
The only thing that doesn´t work like in the tutorial is the Delay. When I simulated the test and enter inside the TriggerVolume it takes 5 seconds to immediately turn on the light. It is supposed to work like a light dimmer. How can I make it work like in the tutorial?
asked May 06 '15 at 01:59 PM in Blueprint Scripting
If I understand you correctly; you expect some smooth transition to happen. Delay will only delay execution of your blueprint. It will not perform any interpolation/animation of the light intensity. Besides this, toggling the visibility will imediatly turn of the light without any transition.
A possible solution might be to use a timeline and Lerp the light intensity value at each update in the timeline or multiply the timelinenumber by the desired intensity.
(Timeline values should slide from 1.0 to 0.0 (turning off the light) or from 0.0 to 1.0 (turning on the light)... then at each update multiply the current timeline value by the desired light intensity. Then set the result value as the new light intensity).
Follow this question
Once you sign in you will be able to subscribe for any updates here