Hello. I’m trying to spawn npc with box trigger where I’ve putted some logic to “on component begin overlap”. But seems like it’s triggering just as game starts. How to fix that?
Here’s my collision settings:
Presumably something dynamic is in the box when it spawns.
Put a Print String into the code for on overlap begin, to see what each overlapping actor actually is.
Well, seems like other actor is a NPC’s blueprint. When I printed “other component” I’ve got capsule component, so I suppose interaction box is reacting with capsule component. What should I do with it?
Well, do you want this capsule to trigger that box?
Which kinds of objects do you want to take action on in the box code?
You need to test for the kinds of objects you care about (like, maybe only players?) and filter those in your code in the event handler.
Seems like I figure it out. Here’s right settings for capsule collision:
and for interaction box:
Thank you!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.