Garry's Mod Wiki

Player:GetHull

  Vector, Vector Player:GetHull()

Description

Retrieves the minimum and maximum Vectors of the Axis-Aligned Bounding Box (AABB) used for the Player's physics and movement Hull Traces.

See also: Player:SetHull, Player:SetHullDuck, Player:GetHullDuck

Returns

1 Vector mins
The hull mins, the lowest corner of the Player's bounding box.
2 Vector maxs
The hull maxs, the highest corner of the Player's bounding box, opposite of the mins.

Example

Prints the mins and maxs of all Players.

for _, ply in ipairs( player.GetAll() ) do local mins, maxs = ply:GetHull() print(mins) print(maxs) end
Output: With one Player on the Server:
-16.000000 -16.000000 0.000000 16.000000 16.000000 72.000000