Roll command
Command defined in core/commands/sh_roll.lua
Registers the /Roll command, which rolls a random number up to 100 or a given maximum and shows it to nearby
players, rolling against the player the caller is looking at when there is one.
Summary
Methods
OnRun(player, arguments)shared
Rolls a random number and shows it to nearby players; the optional argument is the maximum, 100 by default.
Methods
Rolls a random number and shows it to nearby players; the optional argument is the maximum, 100 by default.
When the caller looks at a player, both roll against each other. The AdjustRollNumber hook can add to either roll.
Parameters
- player
- arguments