Registers the /Nightvision command of the Nightvision plugin, which toggles night vision for players allowed to
use it by flipping their nightvisionfx networked boolean.
Summary
Methods
OnRun(player, arguments)shared
Toggles night vision for players allowed to use it, with the goggle on or off sound.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/cwhl2rp/plugins/nightvision/plugin/commands/sh_nightvision.lua:13Toggles night vision for players allowed to use it, with the goggle on or off sound.
The state is stored in the nightvisionfx networked boolean, which drives the client effect.
Parameters
- player
- arguments