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"

How To Get Colliding Actor From Array

Hello, I have an array of multiple splines that I have on my level they are just duplicates of a single blueprint and I want to know how I can call the specific spline that has collided with the player so I can have it be chosen as the current spline.

I have a grinding system so I assume this is the way I'd chose which rail to grind on if you have any other suggestions on how to do this please feel free since the error I have at the moment is the player being teleported to the most recently duplicated spline

Thanks.

alt text

I basically want to find how to feed the currently collided spline into the function so it can set the actor location properly.

Product Version: UE 4.20
Tags:
more ▼

asked Aug 22 '18 at 09:43 PM in Blueprint Scripting

avatar image

Jinkuu
75 2 3 7

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

1 answer: sort voted first

there are two ways i immediately think of, you could use the get overlapping actors then test each one in the array via a cast to find a spline/rail, or you could have a overlap event in the spline bp that sets a variable in the character on begin overlap.

actually for the first idea you wouldnt even need the cast, you could just get the first index as long as your not overlapping more than one at once.

for the second option see the below picture.

alt text

capture.png (85.4 kB)
more ▼

answered Aug 22 '18 at 11:05 PM

avatar image

ThompsonN13
10.1k 33 10 24

avatar image Jinkuu Aug 23 '18 at 05:40 AM

Thank you so much this worked out perfectly!

(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