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"

Lag a variable

Been trying to figure this out on my own but its hard to wrap my head around. Is there anyway I can delay a variable so it lags behind, but updates consistently? Basically it needs to have the same effect as latency on a server might feel like. The use of this is not needed to be explained since Im asking it more as a hypothetical. I cant just do a delay because while it will make it lag behind, it will also make it choppy based on how behind event tick it is. If I could somehow lerp the new variable being set with an outdated one to blend position that would probably be the way to go but Im uncertain how that can be done.

Product Version: UE 4.12
more ▼

asked Jul 08 '16 at 10:09 PM in Blueprint Scripting

avatar image

Grayve Rose
38 3 8 13

avatar image Krxtopher Jul 08 '16 at 10:17 PM

How frequently do you need this variable to update (assuming the update is always a "lagged" value)? 60 times a second? Less? More?

avatar image Grayve Rose Jul 09 '16 at 01:41 AM

The delay Id like to be adjustable if needed, but Id say about every 100 ms. I think it would be better to base it on a set time rather than event tick, but as long as its slower behind tick its going to look iterated and choppy

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Grayve Rose,

I'd use a timer. This allows you to set the length of time between updates, keep it constantly running using "loop", but run slower than every frame.


more ▼

answered Aug 11 '16 at 06:45 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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