Player.SetHullDuck

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SetHullDuck( Vector vMin, Vector vMax )
Description:
Sets the player's collision hull while ducking.
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetHullDuck]Player.SetHullDuck [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionMakes all players have very flat hulls while crouching (can crouch under very tight spaces)
Used onNewerServer.png
Code
for _, v in pairs( player.GetAll() ) do
   v:SetHullDuck( Vector( -16, -16, 0 ), Vector( 16, 16, 1 ) )
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox