Class: World
Lua
C++
Edit

World:GetEntitiesInArea

This method efficiently retrieves all entities that intersect the specified bounding box.

Syntax

Parameter Description
minbounds lower bounds of area
maxbounds upper bounds of area
field the name of a field to check
operation the operation to perform. This can be set to "==", "~=", "<", ">", "<=", or ">="
value the value to compare the entity field value to. This can be any Lua value.

Returns

Returns an array of all top-level entities that intersect the specified bounding box, or have entities in their sub-hierarchy that intersect the bounding box.

Copyright © 2006-2026 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation