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 variable from object collided with?

Sorry for the basic question but my searches are not giving me what I need,

Is there a way to do this below

alt text

I have read the unreal docs recommended for this subject but they all seem to deal with setting blueprints to talk when you already know which specific instances will be talking and then pre-set them to talk to each other by sampling them. I am after doing this dynamically so I don't know which instance will collide with which until I get the "on overlap".

All I need to do it set a bool to true in the object that has been collided with.

Again sorry if this is an obvious one but I have been stumped for a while on this.


Product Version: UE 4.11
getvariable.png (48.9 kB)
more ▼

asked Jun 02 '16 at 08:25 PM in Blueprint Scripting

avatar image

32 6 8 15

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

1 answer: sort voted first

Two options:

  1. If the "other actor" will always be from the same class (including parent/child), you can simply cast to the class/parent and set the variable that way.

  2. Use an interface

more ▼

answered Jun 02 '16 at 09:10 PM

avatar image

1.5k 65 132 103

(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