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"

Blueprints: How to get a starting Variable

Hello Community,

im getting started with UE4 and wanted to try some stuff out. I startet with TriggerBox and movement, location and rotation ans such stuff. But i cannot figure out how to save a starting variable (like starting Location of an Actor). Problem is that when i want to use the Actor as an reference, he also uses his Location at the end of his action but i want the starting point so he could return to it.

If someone got any idea i would be very happy :P.

Product Version: UE 4.19
Tags:
more ▼

asked Oct 18 '18 at 03:41 PM in Blueprint Scripting

avatar image

GJGamerPRO
1

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

1 answer: sort voted first

Begin Play, Get Actor Location, Save Variable, Use that Variable later.

more ▼

answered Oct 18 '18 at 04:02 PM

avatar image

Ninjin
4.1k 88 38 151

avatar image Everynone Oct 18 '18 at 04:14 PM

The above of course. Another alternative, depending on implementation and the purpose an actor serves, is to move a component in relative space (so the actor does not move) and return it to the starting location.

What Ninjin said is the most common and logical in most cases, though.

(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