Hey Guys!
Level start: and i have draw debug set up for none and length of line trace (forward vector) is 30
After certain time(for example 180 seconds): i’d like to have draw debug set up for one frame and length of line tracing should be about 1500
I was wondering how to do that after certain time for example after 180 seconds from level start, the line tracing will get shown to me and then after certain time it will get invisible and short again. Is it possible guys?
Firstly when its invisible and short i want to interact with object near me, then i want to interact by linetracing with the object far away from me, then again i want to interact with object near
I hope you know the way how to do it!
Cheers! have a nice days game devs
It’s possible and relatively easy if you use timers. Here is a reference for you to go through.
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/
Basically you use a variable to determine whether the line trace should be shown or not, another variable for the length of the trace. The line trace will be displayed by a Event Tick.
When each timer fires, you set the corresponding value of control variables in the linked custom event. That will change the behavior of the line trace in the Event Tick. The first timer can make it appear, the second can make it shorter and the third will disable it altogether.
Thank you Marco for quick answer!
i will try to do it ASAP! thank you so much