setCameraDrunkLevel
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
Drunk effect is a wavy motion of the camera depicting the player being drunk. This function used to be called setCameraShakeLevel which has since been deprecated.
Syntax
setCameraDrunkLevel ( )Code Examples
client
This example adds a/camdrunkcommand which allows any player to manually change its camera drunk level.
addCommandHandler( "camdrunk", function( _, level ) local level = math.floor( level ) if level and level >= 0 and level <= 255 then setCameraDrunkLevel( level ) outputChatBox( "Camera drunk level updated to " .. level .. "." ) else outputChatBox( "Camera drunk level must be between 0 and 255." ) end end)