Garry's Mod Wiki

Entity:IsPointInBounds

  boolean Entity:IsPointInBounds( Vector point )

Description

Returns whether a given point is within the entity's Orientated Bounding Box.

This relies on the entity having a collision mesh (not a physics object) and will be affected by SOLID_NONE.

Arguments

1 Vector point
The point to test, in world space coordinates.

Returns

1 boolean
Whether the point is within the entity's bounds.