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"

Detecting if a blueprint overlaps another

So i have 2 blueprints, One for a Ball and one for a Goal, The Ball can be either Red or Blue (determined by a boolean variable), i want to check the color of the ball when they overlap, but not sure how to

Product Version: Not Selected
more ▼

asked Mar 30 '14 at 10:13 PM in Blueprint Scripting

avatar image

58 2 5 10

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

1 answer: sort voted first

Hopefully I can help!

Just to clarify, it sounds like you are able to detect an overlap between the goal and the ball, but are unable to access the boolean to check for color, is that right?

To expose variables like this you need to cast the overlapping actor to the Ball like in the image below. alt text

I created an actor called BallTest with the variable IsRed. After you do the cast, you can drag off the AsBallTestC and type the name of your variable.

I hope that helps and please let me know if I can help with anything else!

casting.jpg (39.0 kB)
more ▼

answered Mar 31 '14 at 12:00 PM

avatar image

Noncarbonated STAFF
36 1 1 1

avatar image speewave Mar 31 '14 at 01:38 PM

Cool thanks for that... Didn't think to cast it (mainly because I didn't know it could catch automatically if the casting failed! thanks for that!)

(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