Difference between revisions of "WD2 ScriptHook: Trainer"

From Nomad DB
(Created page with "The ScriptHook Trainer is a built-in Script from ScriptHook. It uses the native Lua functions from Watch Do...")
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Page_WD2}}
 
The ScriptHook Trainer is a built-in [[WD2 ScriptHook: Script|Script]] from [[WD2 ScriptHook|ScriptHook]]. It uses the native [[WD2 Lua Functions|Lua functions]] from Watch Dogs 2 and provides both menu controls & console commands to interact with the game's world.
 
The ScriptHook Trainer is a built-in [[WD2 ScriptHook: Script|Script]] from [[WD2 ScriptHook|ScriptHook]]. It uses the native [[WD2 Lua Functions|Lua functions]] from Watch Dogs 2 and provides both menu controls & console commands to interact with the game's world.
  
Line 4: Line 5:
  
 
== Controls ==
 
== Controls ==
 +
To open the Menu, press '''F4'''.
 +
 
{{WD2SH:MenuControls}}
 
{{WD2SH:MenuControls}}
  
 
== Console Commands (Selection) ==
 
== Console Commands (Selection) ==
This is just a selection of available commands. Read more about the [[WD2 ScriptHook: Console|Console]] here, for a full list of commands use ''help''.
+
This is just a selection of available commands. Read more about the [[WD2 ScriptHook: Console|Console]] here, for a full list of commands use ''[[WD2 ScriptHook: Console#help|help]]''.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 18: Line 21:
 
|-
 
|-
 
| time <hour> <minute> || Changes the current time || '''Example:''' time 12 0
 
| time <hour> <minute> || Changes the current time || '''Example:''' time 12 0
 +
|-
 +
| hud <on/off> ||Toggle the HUD visibility state || '''Example:''' hud off
 
|}
 
|}
 +
 +
== Related Pages ==
 +
* [[WD2 ScriptHook: Console]]
 +
* '''For Developers: ''' [[WD2 ScriptHook: Console Commands]] in [[WD2 ScriptHook: Script|Scripts]]
 +
 +
[[Category:WD2 ScriptHook]]

Latest revision as of 20:18, 27 October 2020

The ScriptHook Trainer is a built-in Script from ScriptHook. It uses the native Lua functions from Watch Dogs 2 and provides both menu controls & console commands to interact with the game's world.

For Modders: We recommend checking out the Lua source code from the Trainer to introduce yourself to the ScriptHook. You can also check out this article for more information about the Scripting system.

Controls

To open the Menu, press F4.

Up/Down Arrows Navigation
Numpad 8(Up), Numpad 9 (Down)
Enter Confirm Option
Numpad 5
Delete Key, Numpad 0 Return back to previous menu
ESC Close the menu

Console Commands (Selection)

This is just a selection of available commands. Read more about the Console here, for a full list of commands use help.

spawn <vehicle name> Spawns a vehicle Example: spawn Agile.01
god <on/off> Toggles invincibility / “god mode” Example: god on
repairVehicle Repairs the vehicle you are currently sitting in Example: repairVehicle
time <hour> <minute> Changes the current time Example: time 12 0
hud <on/off> Toggle the HUD visibility state Example: hud off

Related Pages