Method GetObjectsInShape
GetObjectsInShape(Shape, float, bool, ObjectTypes, Vector3)
Gets all objects in a shape at this location.
public IEnumerable<NwGameObject> GetObjectsInShape(Shape shape, float size, bool losCheck, ObjectTypes objTypes = ObjectTypes.Creature, Vector3 origin = default)
Parameters
shapeShapeThe search shape to use.
sizefloatThe size of the shape (e.g., radius for spheres).
losCheckboolWhether to enforce line of sight.
objTypesObjectTypesBitmask of object types to include.
originVector3Optional origin offset for the shape.
Returns
- IEnumerable<NwGameObject>
All matching objects found within the shape.