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"

Trying to store location in vector, not working.

Hello!

Long story short I have an idea for the level blueprint to store the location an object is at when a button is pressed, and then teleport the box to the last location it was pressed. The whole blueprint is fine as a whole, it's the storing the locations in a variable part that is troubling me. I have tried using a transform variable then breaking the variable for the location (I don't need rotation or scale for teleportation) and also storing the location in a vector. Neither have worked.

Please assist.

alt text

!alt text

Product Version: UE 4.13
Tags:
right.png (124.9 kB)
left.png (152.5 kB)
more ▼

asked Mar 12 '17 at 08:48 PM in Blueprint Scripting

avatar image

MerkyTV
1 2 3

avatar image Mosel3y Mar 12 '17 at 09:40 PM

Make sure Used defaults value is false, try a SetActor location instead of teleport also.

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

1 answer: sort voted first

I would check to see when the Used boolean is set to true/false and see if that affects whether the variable is stored. May also want to throw some print strings onto the old location/new location and see if those are outputting and make sense. Otherwise the blueprint and the gate look good...you could also throw a print string onto the overlappedactor part of actorbeginoverlap to see if that triggerbox is triggering correctly.

Hope this helps!

more ▼

answered Mar 12 '17 at 09:31 PM

avatar image

samnater
241 8 9 12

(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