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"

Delay Variable Data in Blueprints

How can I delay the data from a variable?

I want to be able to get my actor's velocity from 3 seconds in the past. Is there a way that I can take a variable and make it return data that has been delayed by 3 seconds?

I'd like to use this to record the location, rotation, and velocity of my character from 3 seconds in the past so that players can jump back in time at the press of a button.

Product Version: Not Selected
Tags:
more ▼

asked May 08 '16 at 08:10 PM in Blueprint Scripting

avatar image

qdeanc
5 1 3 4

avatar image bnjmndsgn Aug 11 '16 at 06:44 PM

Hi qdeanc. Sorry for opening your old thread, but I was wondering if you have found the answer to your question. I'm in a similar boat here:

https://answers.unrealengine.com/questions/467961/setting-new-rotation-with-delay-without-rinterp.html

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

1 answer: sort voted first

Hi everyone,

Something you could do is have an array populated with variables, and each time you need to run this (for 3 seconds I would probably do something similar to every .25 seconds, to be certain you are holding enough data), update the most recent transform into the array as the last item in the array and remove element 0, that way, element 0 will always be the transform from X iterations back, allowing you to "rewind" through the array to that point, but only as far as you have elements in the array. Here is an example I made in the level blueprint:

alt text

updatearray.png (106.8 kB)
more ▼

answered Aug 11 '16 at 08:51 PM

(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