SetPlayerAlcohol
Sets the player’s blood-alcohol level; the drunk state is judged at once.
Above the threshold the player is drunk on the spot - the game’s drunkenness buff on their character, the sway on the
others’ screens, OnPlayerDrunk(pid, true); 0 sobers them (the hangover follows as after a real night).
Syntax
Section titled “Syntax”SetPlayerAlcohol(pid, level)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
level |
number | 0 .. 1 |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”-- /drunk: a party trick for adminsSetPlayerAlcohol(pid, 0.6)See also
Section titled “See also”GetPlayerAlcohol · IsPlayerDrunk · OnPlayerDrunk · the Buffs and the drink group of the index
