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

Rolls a random number and shows it to nearby players; the optional argument is the maximum, 100 by default.

Methods

COMMAND:OnRun(player, arguments)

shared gamemodes/catwork/gamemode/core/commands/sh_roll.lua:12

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

Defined in