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"

Add multiple locations for a platform?

Hi, I have made a platform with a start- and end location. All good. How would I go about making a platform that has multiple locations (first, second, third...) which works with the current setup?

Link to Blueprint

https://blueprintue.com/blueprint/rfl4ht4n/

Thanks!

Product Version: UE 4.21
Tags:
more ▼

asked Feb 11 '19 at 02:20 PM in Blueprint Scripting

avatar image

charlesbarnes
6 2 6

avatar image Nebula Games Inc Feb 11 '19 at 02:32 PM

image is way too small to read.

avatar image charlesbarnes Feb 11 '19 at 03:05 PM

I added a link to the BP. Thanks!

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

3 answers: sort voted first

you basically just need to devise a method to change the location the location is being moved to. in the below example i used a array to store the locations. then i use the current location and the next one in the array as the start and end locations for the lerp. the current location is determined by a index variable. once the platform arrives at the destination then we increment the index and run the timeline again. this example is for a looping behavior so the platform will move in a fashion of 1 2 3 1 2 3 1 2 3, over and over.

alt text

capture.png (300.3 kB)
more ▼

answered Feb 11 '19 at 03:36 PM

avatar image

ThompsonN13
9.1k 31 8 20

avatar image charlesbarnes Feb 11 '19 at 04:18 PM

Thanks!!!

avatar image charlesbarnes Feb 12 '19 at 09:27 AM

Hi, the platform glitches back to start position before proceeding to the next location, would you know why this is? Is there a way to reverse the locations so the platforms moves in like a loop? Big thanks, highly appreciate the help

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

When the platform reaches the first location (When the timeline is finished), you could set the start location to the current location and set the end location to something different and start the timeline again.

That would be the simplest answer I can come up with now. Just save all the locations in a vector array.

EDIT: Exactly like the answer above :)

more ▼

answered Feb 11 '19 at 03:38 PM

avatar image

SenseiHaketon
181 4 4 7

avatar image charlesbarnes Feb 11 '19 at 04:18 PM

Thank you for the help!

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

If you want a to go back and forth (i.e., an elevator lift going up or down), you can do something similar below:

alt text

more ▼

answered Feb 11 '19 at 03:51 PM

avatar image

Chyros
1k 6 3 6

avatar image charlesbarnes Feb 12 '19 at 08:48 AM

Awesome, big thanks!

(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