WDL Scripting Changes

From Nomad DB
Revision as of 10:30, 15 April 2021 by Administrator (talk | contribs) (Created page with "{{Page_WDL}} Watch Dogs Legion ScriptHook uses the same framework as WD2 & MDE ScriptHook. However, there are notable Lua changes compared to their old coun...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Watch Dogs Legion ScriptHook uses the same framework as WD2 & MDE ScriptHook. However, there are notable Lua changes compared to their old counterparts.

Scripts

  • manifest.json: Keybinds from Scripts can now be modified in the StartupMenu, as long as they have a Text configured. (Documented here)
  • Config Values: It is now possible to store and load persistent data (e.g. for configuration). For example, the Trainer stores the noclip & freecam speeds using this method. (ScriptHook: Script Config).

UI

  • SimpleMenu: Updated design for Checkboxes
  • SimpleMenu: Added Text & List entry types (Documented here)
  • UI uses a new configuration system, which allows for fully configurable design using JSON files. These JSON files are located in data/ui and once modified, the UI style will update instantly.

Rendering

This feature isn't exactly new, but hasn't been used in past ScriptHook versions.

Lua Functions

Entity

Entity functions from WD2 were also ported to Legion:

Related Pages