Garry's Mod Wiki

Revision Difference

Player:GetHullDuck#527813

<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>⤶ <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 i, ply in ipairs( player.GetAll() ) do for _, ply in ipairs( player.GetAll() ) do local bottom, top = ply:GetHullDuck() print(bottom) print(top) end </code> <output> ⤶ ```⤶ ```⤶ -16.000000 -16.000000 0.000000 16.000000 16.000000 36.000000 ``` </output> ⤶ </example> </output> </example>