Entity.GetCollisionBounds
From GMod Wiki
| Function | |
| Syntax | Entity:GetCollisionBounds( ) |
| Description: | |
| This returns the min and max corners of the entity's bounding box. | |
| Returns: | Vector min, Vector max |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetCollisionBounds]Entity.GetCollisionBounds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Get the min and max corners of the bounding box. |
|---|---|
| Used on | |
| Code | local Min,Max = self:GetCollisionBounds() |
| Output | Sets the Min and Max variables to the min and max corners of the bounding box |