Player:GetHullDuck

From Garry's Mod
Jump to: navigation, search
 Player:GetHullDuck( )

Contents

Description

Gets the bottom base and the top base size of the player's crouch hull.

Returns

Vector

Player's crouch hull bottom base size

Returns

Vector

Player's crouch hull top base size

Examples

Example

Prints bases' size of the crouch hull of all players.

for k,v in pairs(player.GetAll()) do

	local bottom, top = v:GetHullDuck()

	print(bottom)

	print(top)

end

Output:

-16.000000 -16.000000 0.000000 16.000000 16.000000 36.000000
Personal tools
Navigation