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"

Compare location of child actor of same parent

Hi, I am having trouble comparing the location of two actors collision components that share the same parent. The output of the location shows as 0 because I am technically comparing it to itself. It will print out all the locations of the actors that are currently on the screen simply by getting world location, breaking the vector, and then plugging the Z axis into print, but I can't compare them by more than/less than because it is checking against itself only.

Product Version: UE 4.16
more ▼

asked Sep 07 '17 at 06:14 PM in Blueprint Scripting

avatar image

7 2 3 5

avatar image cmarston74 Sep 08 '17 at 04:08 AM

Please post an image of your blueprint as i don't understand exactly what you mean by comparing it to itself when you're comparing two vectors.

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

1 answer: sort voted first

I dont quite understand but to get the child actor's location you can use get all child actor, it returns array of actor so you need to define what kind of actor is that, the BP like this alt text

ans.jpg (28.0 kB)
more ▼

answered Sep 08 '17 at 07:16 AM

avatar image

28 4 3 6

(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