Garry's Mod Wiki

Player:GetHullDuck

  Vector, Vector Player:GetHullDuck()

Description

Retrieves the minimum and maximum Vectors of the Axis-Aligned Bounding Box (AABB) used for the Player's physics and movement Hull Traces while they are crouching (or "Ducking").

See also: Player:SetHullDuck, Player:GetHull, Player:SetHull

Returns

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

Example

Prints the crouching mins and maxs of all Players.

for _, ply in ipairs( player.GetAll() ) do local bottom, top = ply:GetHullDuck() print(bottom) print(top) end
Output: With one Player on the Server:
-16.000000 -16.000000 0.000000 16.000000 16.000000 36.000000