Garry's Mod Wiki

Entity:GetSurroundingBounds

  Vector, Vector Entity:GetSurroundingBounds()

Just Added

This was just added in the latest version (2022.08.12). It might only be available on the Dev Branch right now.

Description

Returns two vectors representing the minimum and maximum extent of the entity's axis-aligned bounding box for hitbox detection. In most cases, this will return the same bounding box as Entity:WorldSpaceAABB unless it was changed by Entity:SetSurroundingBounds or Entity:SetSurroundingBoundsType.

Returns

1 Vector
The minimum vector for the entity's bounding box in world space.
2 Vector
The maximum vector for the entity's bounding box in world space.