Author Topic: Check if object is at a certain position  (Read 442 times)

I know you could do this with a container search, but I wanted to know if there was a better way.


I have code for one that works by a radius search, but it seems like there's a more efficient way to do it.

I made a topic about this a long time ago, and I'm pretty sure the answer I got was that there wasn't a better way to do it than a small object search (actually pretty efficient). Unless of course you don't have many of the object you're searching for and you can just cycle through object.positions == "position";

I made a topic about this a long time ago, and I'm pretty sure the answer I got was that there wasn't a better way to do it than a small object search (actually pretty efficient). Unless of course you don't have many of the object you're searching for and you can just cycle through object.positions == "position";
Yeah, I think I saw that.

Alright then.

Bricks without raycasting get ignored by container searches, don't they? Because this is convenient for my purposes.

Yeah, I think I saw that.

Alright then.

Bricks without raycasting get ignored by container searches, don't they? Because this is convenient for my purposes.
Depends on your typemasks

brickObjectType ignores
brickAlwaysObjectType does not
(The names might be wrong but they're close)

Depends on your typemasks

brickObjectType ignores
brickAlwaysObjectType does not
(The names might be wrong but they're close)
Ah right, I forgot about the "always" one. Okay. That's really all I need to know.