Difference between revisions of "WDL ScriptHook: Lua Functions"
From Nomad DB
Line 1: | Line 1: | ||
{{Page_WDL}} | {{Page_WDL}} | ||
[[WDL ScriptHook|ScriptHook]] registers custom [[Lua]] functions to the game's scripting system. These functions extend the [[WDL Lua Functions|built-in Lua functions]] and [[WDL Lua Classes|Game classes]] and provide additional functionality. | [[WDL ScriptHook|ScriptHook]] registers custom [[Lua]] functions to the game's scripting system. These functions extend the [[WDL Lua Functions|built-in Lua functions]] and [[WDL Lua Classes|Game classes]] and provide additional functionality. | ||
+ | |||
+ | '''If you have used WD2 or MDE ScriptHook, check out the list of [[WDL Scripting Changes|notable ScriptHook changes for Legion]]'''. | ||
==Generic== | ==Generic== |
Revision as of 19:00, 5 May 2021
ScriptHook registers custom Lua functions to the game's scripting system. These functions extend the built-in Lua functions and Game classes and provide additional functionality.
If you have used WD2 or MDE ScriptHook, check out the list of notable ScriptHook changes for Legion.
Contents
Generic
Script
UI
Game Functions
Player
- ScriptHook.Teleport
- ScriptHook.SetLocalPlayerNoclip
- ScriptHook.HasLocalPlayerNoclip
- ScriptHook.SetNoclipSpeeds
Entity
- ScriptHook.GetAllEntities
- ScriptHook.GetEntitiesInRange
- ScriptHook.GetEntitiesWithComponent
- ScriptHook.GetEntityComponents
- ScriptHook.EntityHasComponent
- ScriptHook.GetEntityClassName
- ScriptHook.SetEntityIsStatic
- ScriptHook.SetEntityIsPersistent
- ScriptHook.SetEntityPoolClearOnUnused
- ScriptHook.SetEntityIsPoolable
- ScriptHook.SetEntityPhysicsEnabled
- ScriptHook.SetEntityIsVisible
Vehicle
Game
- ScriptHook.SetWorldSpawnerEnabled
- ScriptHook.IsWorldSpawnerEnabled
- ScriptHook.SetWorldImpostorEnabled
- ScriptHook.IsWorldImpostorEnabled
Camera
- ScriptHook.CameraSetCustom
- ScriptHook.CameraReset
- ScriptHook.SetLocalPlayerFreeCamera
- ScriptHook.HasLocalPlayerFreeCamera
- ScriptHook.SetFreeCameraSpeeds