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"

Why object cannot detected?

this is my blueprints, alt text

alt text

alt text and detail of DetectTrigger component. Some Koreans in images so pardon me. I tested a lot, but BP didin't sensed it overlapped with Testingcube. Maybe my problems are not in those images becuz Im dumb, but I'll hope get answer from here....

Product Version: UE 4.17
a.png (217.1 kB)
aaaaa.png (67.5 kB)
aaaaaaaa.png (10.1 kB)
more ▼

asked Dec 22 '17 at 10:52 AM in Blueprint Scripting

avatar image

3 1 7

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

1 answer: sort voted first

Everybody is dumb but only the smart ones realize it. ;)

Do not use "Actor Begin Overlap". Use the "BeginOverlap" event on the components. If you select one of your "trigger" components, scroll down to the bottom of the Details panel. There will be green buttons that let you add events for that component. Add the begin/end overlap events. Now those events will trigger when you get the overlap.

more ▼

answered Dec 22 '17 at 10:57 AM

avatar image

4.5k 32 79 42

avatar image KeungKeung Dec 22 '17 at 11:23 AM

alt text

Really THX for answer!, but here's problem... I changed code like this, but it never printed Cube_Blueprint. Im actually using this event node so I can imagine I mised something. Help me veteran...

adadw.png (186.0 kB)
avatar image Jin_VE Dec 22 '17 at 11:54 AM

Move the print string to before the branch and see if the event is being triggered. Or select the OnComponentBeginOverlap node and press F9. When you play-in-editor it will stop execution there if the event is triggered. Also, in the top toolbar there is a drop-down menu called "Debug Filter". That should either be set to your object or "No debug object selected" (which means it will stop execution for any object).

If the event isn't being triggered then your collision settings must be wrong. You want both objects to have "Generate overlap events" enabled. You want to set the bomb to overlap with the test cube AND the test cube to overlap with the bomb. They both need to be set to overlap with the object type of the other.

avatar image KeungKeung Dec 22 '17 at 12:08 PM

Yes I see, it detected. but problem is don't know what detected. I mean my problem is not solve with just detecting. my 'detect' meant sence what is this overlapped thing.

I already checked collision setting many times, I set they can generate overlap event both, and can overlap each other.

avatar image Jin_VE Dec 22 '17 at 12:25 PM

You can determine what type of actor is overlapping by casting the "Other Actor" pin into a "Cast to..." node. You want to cast it to the type of actor you want. If the cast succeeds, you can use the output pin and be sure the actor is the type you want.

avatar image KeungKeung Dec 22 '17 at 12:12 PM

Something wierd: I set cube object to print string when actor begin overlap. when i played game and overlapped my character and cube, tan cube printed string. but not at bomb. but I think really nothing wrong with collision... whats wrong ?!??

avatar image Jin_VE Dec 22 '17 at 12:27 PM

The collision settings you show above say that the bomb will only overlap with the test cube. It needs to also allow overlap with the player's object type (usually Pawn, but if you changed that you should use the type you changed it to).

avatar image Jin_VE Dec 22 '17 at 12:28 PM

Hmm.. Your image shows the object type as "TestingCube" and it overlaps with "TestingCube". Is that the bomb's collision settings? If so it should probably have a different object type, like "Bomb".

avatar image KeungKeung Dec 22 '17 at 12:30 PM

Actually I just think I solved problem. I changed 'simulation generate hit event' in some compent, Im finding where is that compent but its solved. but still got a question: cube still not sensing it overlapping with boalt textmb. but it knows something overlapped. here's cube's code:

aaaadd.png (99.4 kB)
avatar image KeungKeung Dec 22 '17 at 12:35 PM

and the Bomb of ( == actor) is BP

avatar image Jin_VE Dec 22 '17 at 12:40 PM

Same thing here: you want to use the OnComponentBeginOverlap of the component. Not ActorBeginOverlap. At least, I've never used that method so I can't help with it and I know the way I do it does work.

avatar image KeungKeung Dec 22 '17 at 12:41 PM

Yes, you were right: when I set collison 'custom' and overlap only cube, than didn't work. but when I set 'OverlapaAll' it worked. really thanks for discussion. you may not live in US but I wondered US is 7:00 AM. So Im really THX again. But asking you last favor: Can you tell me why this was problem? the only thing important is cube, but I can't understand I have to overlap all.

avatar image Jin_VE Dec 22 '17 at 12:49 PM

Overlap All will set some more object types to overlap and change the object type of that component to "World Static". If that helps then there is definitely something wrong with how you set up your collision channels. It would be wise to follow some tutorials on collisions and overlap events. Collision channels are a bit complicated but once you understand them they're no big deal. Spending time learning and practicing will be worth it, even if it takes you away from your main project for a while. Follow a few tutorials and build their examples with them, step-by-step. After a while it will seem natural and you can do your project correctly. Good luck and don't forget to close your question by marking this as the answer.

avatar image KeungKeung Dec 22 '17 at 01:11 PM

sure nice guy

(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