Debug Novr
scripts/vscripts/alyxlib/debug/novr.lua
Properties
AutoStartInToolsMode
Default value
false
Methods
AddInteraction
Add an interaction class for the NoVR player to interact with.
Parameters
title
string
Text to show in-game on the entityclass
string
Class to interact withmustBeHeld
boolean
If the player must hold the use button, to avoid accidental activationinput(optional)
string
Input to fireoutput(optional)
string,string[]
Output(s) to fire, if no input is specified
EnableAllDebugging
Does the following:
- Enables
buddhamode - Gives all weapons and ammo
impulse 101 - Binds V to noclip toggling
- Enables novr entity interaction
DisableAllDebugging
Undoes all operations performed by NoVR:EnableAllDebugging
Except removing weapons.
UnbindKeys
Unbind all keys bound by NoVR:BindKey
BindKey
Bind a keyboard key to a callback function.
Parameters
key
KeyboardKeycallback
function,string
Callback function or command stringname(optional)
string
Optional name for the callback command
Types
NoVrInteractClass
| 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. |