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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Get transform of all actors of class

Hello, I am trying to get the transform of every player start in my level using the class blueprints. So far I haven't been able to discover a better way, but I am trying to find the spawn locations using the get all actors of class feature. After that I'm using the get display function to get all the actors of the class seperated from the array. I'm not sure if it is even possible, but I just started with blueprints. If there is a better way to seperate actors from an array please let me know. I attatched an image of the blueprint. If it is still unclear please ask me and I will try to provide all information possible. keep in mind I'm a starter :) Thanks.

alt text

Product Version: UE 4.12
more ▼

asked Jul 11 '16 at 06:35 PM in Blueprint Scripting

avatar image

3 1 2

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

1 answer: sort voted first

The main idea of foreach loop is not to make this kind of mess, all what you need to do is from "Loop Body" you set the transform... that's it. There lots of ways that you can do it 1.You can get the index of the foreach loop and multiply it be 100 and add to the "X" of your location that set in the transform, that way all the players will be moved 100cm apart of each other be the "X" direction. 2.You can make a pre made array with spawn locations and get the locations again with the index of the loop etc etc etc. Hope its helps

more ▼

answered Jul 11 '16 at 07:26 PM

avatar image

478 21 10 25

avatar image SuperKillJuul Jul 11 '16 at 11:15 PM

Thanks for the fast response! Using the get transform instead of the set transform on the array element instead of the loop body did it. Thanks for helping me in the right direction :)

(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