Difference between revisions of "ScriptHook: Console"

From Nomad DB
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The Ingame Console can be opened using F1, unless you modify [[WD2 ScriptHook: config.json|config.json]] to change the Key binding. It can be used to manage script loading/unloading and is extended by [[WD2 ScriptHook: Console Commands|custom Console Commands]] from [[WD2 ScriptHook: Script|Scripts]].
+
The in-game Console can be opened using '''F1''', unless you modify config.json to change the Key binding. It can be used to manage script loading/unloading and is extended by [[ScriptHook: Console Commands|custom Console Commands]] from [[ScriptHook: Script|Scripts]].
  
 
[[File:Wd2sh console.jpeg|thumb]]
 
[[File:Wd2sh console.jpeg|thumb]]
 
== Built-in Commands ==
 
== Built-in Commands ==
 
==== help ====
 
==== help ====
Prints a full list of available commands, including [[WD2 ScriptHook: Console Commands|custom commands]] from Scripts.
+
Print a full list of available commands, including [[ScriptHook: Console Commands|custom commands]] from [[ScriptHook:_Script|Script]].
 +
 
 +
==== lua_run [code] ====
 +
Execute a Lua string.
 +
 
 +
==== lua_dumpstack ====
 +
Print Lua stack.
 +
 
 +
==== clear ====
 +
Clear console output.
  
 
==== load [script] ====
 
==== load [script] ====
Loads a Script by name. The [script] parameter refers to the Script's directory name below ''data/scripts''.
+
Load a [[ScriptHook:_Script|Script]] by name. The [script] parameter refers to the Script's directory name below ''data/scripts''.
  
 
==== unload [script] ====
 
==== unload [script] ====
Unloads a Script.
+
Unload a [[ScriptHook:_Script|Script]].
  
 
==== reload [script] ====
 
==== reload [script] ====
Reloads a Script.
+
Reload a [[ScriptHook:_Script|Script]].
 +
 
 +
==== reloadall ====
 +
Reload all [[ScriptHook:_Script|Scripts]].
  
 
== Trainer ==
 
== Trainer ==
The [[WD2 ScriptHook: Trainer|Trainer]] provides console commands to interact with the game's world.
+
The [[ScriptHook: Trainer|Trainer]] provides console commands to interact with the game's world.
  
 
== Related Pages ==
 
== Related Pages ==
* [[WD2 ScriptHook: Console Commands]]
+
* [[ScriptHook: Console Commands]]
  
[[Category:WD2 ScriptHook]]
+
[[Category:ScriptHook]]

Latest revision as of 20:33, 27 October 2020

The in-game Console can be opened using F1, unless you modify config.json to change the Key binding. It can be used to manage script loading/unloading and is extended by custom Console Commands from Scripts.

Wd2sh console.jpeg

Built-in Commands

help

Print a full list of available commands, including custom commands from Script.

lua_run [code]

Execute a Lua string.

lua_dumpstack

Print Lua stack.

clear

Clear console output.

load [script]

Load a Script by name. The [script] parameter refers to the Script's directory name below data/scripts.

unload [script]

Unload a Script.

reload [script]

Reload a Script.

reloadall

Reload all Scripts.

Trainer

The Trainer provides console commands to interact with the game's world.

Related Pages