Garry's Mod Wiki

Revision Difference

Player:GetHullDuck#527030

<function name="GetHullDuck" parent="Player" type="classfunc"> <description>Gets the bottom base and the top base size of the player's crouch hull.</description> <realm>Shared</realm> <rets> <ret name="" type="Vector">Player's crouch hull bottom base size</ret> <ret name="" type="Vector">Player's crouch hull top base size</ret> </rets> </function> <example> <description>Prints bases' size of the crouch hull of all players.</description> <code> for k,v in pairs(player.GetAll()) do for i, v in ipairs( player.GetAll() ) do local bottom, top = v:GetHullDuck() print(bottom) print(top) end </code> <output> ``` -16.000000 -16.000000 0.000000 16.000000 16.000000 36.000000 ``` </output> </example>