Garry's Mod Wiki

Revision Difference

Player:GetHull#512734

<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 k,v in pairs(player.GetAll()) do⤶ ⤶ local bottom, top = v:GetHull()⤶ ⤶ print(bottom)⤶ ⤶ print(top)⤶ ⤶ end⤶ </code>⤶ <output>⤶ ⤶ ```⤶ -16.000000 -16.000000 0.000000⤶ 16.000000 16.000000 72.000000⤶ ```⤶ ⤶ </output>⤶ ⤶ </example>