How do you use Sphere Overlap Actors node?

The Sphere Overlap Actors node will not compile with something going into its Object Types Array input. Since the input is byte colored I have no idea what to put into it.

1 Like

That function expects Object Types to be an array of object type enums, so you’d use a Make Array node like this:

5524-make_array_to_sphereoverlap.png

So, in this example, the Out Actors array would hold all Pawns and PhysicsBodies that are currently within the specified sphere (provided, of course, that I would assign useful values to the Sphere Pos and Sphere Radius arguments as well)

1 Like

Hmm, I those drop-downs were black before so I thought it was just a box for a number, but now it shows up right.

However, I have selected every option in that Make Array and it still doesn’t work. I have a print string tied to the array I am setting and nothing pops out when I print it. Even if I set a precise vector and set sphere radius to 10k.

Going to have to investigate some more in the morning.

I just made a small test project using the offending function in question, and it works just fine here. It’s just a pawn-derived Blueprint containing a capsule and a pointlight, moving back and forth, in and out of the sphere radius, and a level Blueprint checking for overlaps using the Sphere Overlap node. I set the Object Types in the array to ‘WorldDynamic’, and made sure that the capsule in the Blueprint pawn was set to generate overlap events.

Let me know if you still can’t make it work, and I could zip my project up and share it somewhere. I don’t know if project files are platform agnostic or not, but I’m using the Windows version.

Setting the overlap to on was a good call.

Still not working, but I think I may have another problem that is playing hard to get…

Fixed my other problem, but still no dice.

I destroyed my character but the tiles survive… :stuck_out_tongue:

Ok, so it wasn’t overlapping because I never set the collision boxes on my actual tile assets. Thanks for your help! :slight_smile: