Garry's Mod Wiki

Entity:SetSurroundingBounds

  Entity:SetSurroundingBounds( Vector min, Vector max )

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

Sets the axis-aligned bounding box (AABB) for an entity's hitbox detection.

See also Entity:SetSurroundingBoundsType (mutually exclusive).

Arguments

1 Vector min
Minimum extent of the AABB relative to entity's position.
2 Vector max
Maximum extent of the AABB relative to entity's position.