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"

How can I make multiple instances of an actor add to the score when they enter a goal?

Hello! this may be a bit of a complicated question so please bear with me.

I'm setting up a project where when a certain actor (of which there are about 25 in game at a time) enters the goal a point is added to the score. When the actor leaves the goal a point needs to be removed from the score. After a long process to get the score together they successfully add to the score and subtract when they leave.

The problem however is that when a second enters the goal it does not add to the score. it will remain at 1 until either one of the two actors leave, then it will drop to 0 even if there is still one in the goal. Currently they are instanced through the level blueprint and I have posted all relevant blueprints below:

First is the Arena BP says when collision happens with the actor http://imgur.com/vKRr4Tm

Then in the actor that is colliding is adding/removing a point http://imgur.com/RcpmsB9

Receiving the score, it is put to the HUD http://imgur.com/jdwKYtB

And the instance of the Actor in the level BP http://imgur.com/lgF2Eg9

Screen with 4 in the goal http://imgur.com/a/8bwQb

Screen after one of the 4 is out of the goal but 3 remain http://imgur.com/70uRZQ3

Any help with this would be much appreciated, it's really giving me a hard time. Thanks!

Product Version: UE 4.12
more ▼

asked Oct 09 '16 at 08:38 PM in Blueprint Scripting

avatar image


avatar image Pariah013 Dec 07 '16 at 04:59 AM

Have you tried just putting the overlap event on the Wigglers actor instead of the goal since it's a new instance every time it's spawned and just having them handle the scoring? That should be an easier solution than having to use an external array to adjust the score, which was my original thought. That way it counts every time the new actor overlaps the goal.

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

-1 answers: sort voted first
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