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"

Overlapping Triggering when Player is not Overlapping

I am having a serious issue where an Overlap Trigger is getting Triggered even though the Actor is not Overlapping it.

Basically I have a Trigger Volume that once my Character Overlaps it will trigger his death. I put a print text function notifying me when I overlap the trigger. When I start the game I get the print text and my character dies despite the fact that I never touched the Trigger.

This is very strange and I am at a complete loss as to whats going on. I am currently using 4.12.5

Product Version: UE 4.12
Tags:
more ▼

asked Jan 05 '17 at 08:53 AM in Blueprint Scripting

avatar image

Mastace
5 1 4 6

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

4 answers: sort voted first

Hey, the problem is that right now it is overlapping on all actors. So you need to do a branch with if overlapping actor == player character. :)

Also as a side note, you could probably replace the series of branches with one for each loop iterating over an array.

Hope this helps, Tom.

more ▼

answered Jan 05 '17 at 06:24 PM

avatar image

Illarvan
367 8 11 25

avatar image Mastace Jan 05 '17 at 09:29 PM

I have no idea what you are talking about with "you could probably replace the series of branches with one for each loop iterating over an array."

Also how do you "branch with if overlapping actor == player character"?

avatar image Illarvan Jan 05 '17 at 09:58 PM

I'm on mobile until tomorrow, so I cant post an image until then. But basically you want to take the overlapped actor and see if that equals player character (this goes into the branch) if it's true, then execute your code.

For the other part, if you add all of your booleans into an array, you can then plug that array into a foreach node.

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

Hey, can you post a picture of your blueprint so we can see what's happening.

more ▼

answered Jan 05 '17 at 10:06 AM

avatar image

Illarvan
367 8 11 25

avatar image Mastace Jan 05 '17 at 06:16 PM

Thank you so much! I just did above. Do you want me to fraps the issue to show you it in action?

avatar image Mastace Jan 05 '17 at 06:46 PM

WAIT! I think I fixed the problem. If I did I'll mark your response as answered so you can get some credit for trying to take the time for helping me (which is very kind of you btw)

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

It's good practice to make sure that the player character is the actual actor that's overlapping. On the overlap event, try to cast to the player character. alt text

more ▼

answered Jan 05 '17 at 06:24 PM

avatar image

Forcedown
1 1

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

Yup I am a moron. So in the level I have Boxes that get set on fire but also pass through the trigger box. Turns out the Boxes are trigger my characters death so I might need to tag them.

I was up way to late try t understand what was going.

Thank you everyone you guys are amazing for helping!

more ▼

answered Jan 05 '17 at 10:04 PM

avatar image

Mastace
5 1 4 6

(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