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"

Get all actor of class (multiple index)

Hello to all boys. unfortunately I have experienced this problem and if you'd be happy to help me. I created a blueprint actor and I placed three of these in my map. As per picture, I need to make the cast for each of them as they do not know a way to assign more index in "Out Actors". Is there any way to fix it or I do this job for each copy that I put the map? Thank you in advancealt text

Product Version: UE 4.9
Tags:
immagine.png (164.1 kB)
more ▼

asked Oct 27 '15 at 01:53 PM in Blueprint Scripting

avatar image

GermanoGuidi
30 4 8 14

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

2 answers: sort voted first

Hi!

You must use ForEachLoop node. In this case automatically will be handled all elements of the selected class.

About warning in Cast To.
Since you already know the actor you want to reference(get all actors of class) and you are then getting each one of them(for each loop) you dont need to cast. That's what those warnings are telling you as well.

alt text

for.png (68.1 kB)
more ▼

answered Oct 27 '15 at 02:42 PM

avatar image

svv3dUDN
8.4k 254 41 399

avatar image GermanoGuidi Oct 27 '15 at 02:48 PM

Thank you so much!!

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

here is a solution

alt text

07.png (132.6 kB)
more ▼

answered Oct 27 '15 at 02:48 PM

avatar image

Mhousse1247
3.5k 152 29 318

(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