x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

how to get LineTrace visible and longer then back to invisible and shorter?

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 :)

Product Version: UE 4.18
Tags:
more ▼

asked Feb 07 '18 at 11:06 AM in Blueprint Scripting

avatar image

Maciek_W
3 1 3

avatar image Maciek_W Feb 07 '18 at 11:09 AM

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 :)

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Feb 07 '18 at 07:18 PM

avatar image

vr_marco
2.2k 10 6 12

avatar image Maciek_W Feb 13 '18 at 08:54 AM

Thank you Marco for quick answer!

i will try to do it ASAP! thank you so much :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question