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"

Multiple collision BPs in level, only first one works

So I'm running into an issue and I have a feeling there's something really basic that I'm missing. I have a blueprint actor with nothing but a collision box in it and two events, an actorbeginoverlap and actorendoverlap driving a boolean variable. I'm then casting into my character BP to use that boolean to drive some other stuff. The issue is that the boolean is only updated on the first copy of the collision box BP in the level and doesn't seem to work on the other copies of the BP. The weird part is that the print string nodes after the boolean set nodes print out fine on overlap, but the boolean isn't set. Any help would be appreciated.

Cast into the character BP, run off event tick: https://snag.gy/pmQztg.jpg

The box overlap BP and event graph: https://snag.gy/gwyLYN.jpg

Product Version: UE 4.12
Tags:
more ▼

asked Dec 28 '16 at 08:14 AM in Blueprint Scripting

avatar image

ascaps
6 1 2

avatar image ascaps Dec 28 '16 at 08:16 AM

And to avoid confusion, what I mean about multiple copies of the blueprint in question: https://snag.gy/oBVDRI.jpg

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

1 answer: sort voted first

Do you mean the 3 instances of InternalCamera?

If so, you could try using Get All Actors of Class at Begin Play and saving a Reference to each-- Then when you Cast to their blueprint type on collision, check to see which of them was collided with and set a boolean specific to that one.

It is a bit more complex that way but it will allow you t handle all three overlaps independently.

save refs

unique collisions

save_refs.jpg (67.5 kB)
more ▼

answered Dec 28 '16 at 10:20 AM

avatar image

Looniper
766 22 7 36

(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