Skip to content

Debug Novr

scripts/vscripts/alyxlib/debug/novr.lua

Properties

AutoStartInToolsMode

NoVR.AutoStartInToolsMode = value

Default value false

Methods

AddInteraction

Adds an interaction class for the NoVR player to interact with.

NoVR:AddInteraction(title, class, mustBeHeld, input, output)

Parameters

  • title
    string
    Text to show in-game on the entity
  • class
    string
    Class to interact with
  • mustBeHeld
    boolean
    If the player must hold the use button, to avoid accidental activation
  • input (optional)
    string
    Input to fire
  • output (optional)
    string, string[]
    Output(s) to fire, if no input is specified

EnableAllDebugging

Does the following:

  • Enables buddha mode
  • Gives all weapons and ammo impulse 101
  • Binds V to noclip toggling
  • Enables novr entity interaction
NoVR:EnableAllDebugging()

DisableAllDebugging

Undoes all operations performed by NoVR:EnableAllDebugging

Except removing weapons.

NoVR:DisableAllDebugging()

UnbindKeys

Unbinds all keys bound by NoVR:BindKey

NoVR:UnbindKeys()

BindKey

Binds a keyboard key to a callback function.

NoVR:BindKey(key, callback, name)

Parameters

  • key
    KeyboardKey
    Key to bind
  • callback
    function, string
    Callback function or command string
  • name (optional)
    string
    Optional name for the callback command

Types

NoVrInteractClass

NoVR interaction data.

Field Type Description
class string
hold? boolean
input? string
parameter? string Optional parameter for input.
output? string|string[]
title? string Text to show in-game.
position? Vector|string|function Offset, attachment name, function that returns world position.
weight? number Weight for this class to assign importance next to others.