Garry's Mod Wiki

Revision Difference

Player:GetHull#562805

<function name="GetHull" parent="Player" type="classfunc"> <description>Gets the bottom base and the top base size of the player's hull.</description> <description>Returns the player's hull bounding box.</description> <realm>Shared</realm> <rets> <ret name="" type="Vector">Player's hull bottom base size.</ret> <ret name="" type="Vector">Player's hull top base size.</ret> <ret name="" type="Vector">The hull mins, which could be interpreted as the hull's bottom left corner.</ret> <ret name="" type="Vector">The hull maxs, which could be interpreted as the hull's top right corner.</ret> </rets> </function> <example> <description>Prints bases' size of the hull of all players.</description> <code> for _, ply in ipairs( player.GetAll() ) do local bottom, top = ply:GetHull() print(bottom) print(top) local mins, maxs= ply:GetHull() print(mins) print(maxs) end </code> <output> ``` -16.000000 -16.000000 0.000000 16.000000 16.000000 72.000000 ``` </output> </example>