Garry's Mod Wiki

Revision Difference

Player:GetHull#527117

<function name="GetHull" parent="Player" type="classfunc"> <description>Gets the bottom base and the top base size of the player's hull.</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> </rets> </function> <example> <description>Prints bases' size of the hull of all players.</description> <code> for i, v in ipairs( player.GetAll() ) do local bottom, top = v:GetHull() local bottom, top = v:GetHull() print(bottom) print(top) ⤶ end⤶ print(top) end⤶ </code> <output> ``` -16.000000 -16.000000 0.000000 16.000000 16.000000 72.000000 ``` </output> </example>