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"

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. 

[Solved] Using one blueprint class in multiple scneraios

Hello,

I am making a flying game where the user is trying to fly through circles to receive points. I have built a blueprint class with a box collision, when the user fly's through the circle (and the box collision) they receive points.

I made one blueprint class with my circle mesh and my box collision, I've added a OnComponentBeginOverlap command to add 10 points to the users point value. The issue is that only the first instance of this blueprint will work, any other instances after do not.

To clarify, I want to use the same blueprint class multiple times in multiple situations.

I've attached images of my blueprints here.

Thank you for your time.

alt text alt text

alt text

Product Version: UE 4.18
Tags:
ring-1.png (474.6 kB)
viewport.png (185.3 kB)
widget.png (185.3 kB)
more ▼

asked Jan 03 '18 at 12:47 AM in Blueprint Scripting

avatar image

Sahhar
38 2 5 11

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

1 answer: sort voted first

Hey there, each instance of the blueprint should trigger separately. The thing is that you have a variable Points on each ring, and that will not work, because you'll be having always the same points. You have to move that variable into the players blueprint and when you have a overlap you cast the other actor into your player bp and add the points from there.

more ▼

answered Jan 03 '18 at 12:55 AM

avatar image

xlar8or
6k 161 129 304

avatar image Sahhar Jan 03 '18 at 12:59 AM

Thank you, this worked.

(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