Difference between revisions of "WDL ScriptHook: Lua Functions"
From Nomad DB
(Created page with "{{Page_WDL}} ScriptHook registers custom Lua functions to the game's scripting system. These functions extend the WDL Lua Functions|built-in Lua funct...") |
|||
Line 24: | Line 24: | ||
*[[ScriptHook.SetLocalPlayerNoclip]] | *[[ScriptHook.SetLocalPlayerNoclip]] | ||
*[[ScriptHook.HasLocalPlayerNoclip]] | *[[ScriptHook.HasLocalPlayerNoclip]] | ||
+ | *[[ScriptHook.SetNoclipSpeeds]] | ||
===Entity=== | ===Entity=== | ||
Line 33: | Line 34: | ||
*[[ScriptHook.EntityHasComponent]] | *[[ScriptHook.EntityHasComponent]] | ||
*[[ScriptHook.GetEntityClassName]] | *[[ScriptHook.GetEntityClassName]] | ||
+ | |||
+ | *[[SetEntityIsStatic]] | ||
+ | *[[SetEntityIsPersistent]] | ||
+ | *[[SetEntityPoolClearOnUnused]] | ||
+ | *[[SetEntityIsPoolable]] | ||
+ | *[[SetEntityPhysicsEnabled]] | ||
+ | *[[SetEntityIsVisible]] | ||
===Vehicle=== | ===Vehicle=== | ||
Line 40: | Line 48: | ||
===Game=== | ===Game=== | ||
− | *[[ScriptHook. | + | *[[ScriptHook.SetWorldSpawnerEnabled]] |
*[[ScriptHook.IsWorldSpawnerEnabled]] | *[[ScriptHook.IsWorldSpawnerEnabled]] | ||
− | *[[ScriptHook. | + | *[[ScriptHook.SetWorldImpostorEnabled]] |
*[[ScriptHook.IsWorldImpostorEnabled]] | *[[ScriptHook.IsWorldImpostorEnabled]] | ||
Line 51: | Line 59: | ||
*[[ScriptHook.SetLocalPlayerFreeCamera]] | *[[ScriptHook.SetLocalPlayerFreeCamera]] | ||
*[[ScriptHook.HasLocalPlayerFreeCamera]] | *[[ScriptHook.HasLocalPlayerFreeCamera]] | ||
+ | *[[ScriptHook.SetFreeCameraSpeeds]] | ||
==Utility== | ==Utility== |
Revision as of 21:57, 14 April 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.
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
- SetEntityIsStatic
- SetEntityIsPersistent
- SetEntityPoolClearOnUnused
- SetEntityIsPoolable
- SetEntityPhysicsEnabled
- SetEntityIsVisible
Vehicle
Game
- ScriptHook.SetWorldSpawnerEnabled
- ScriptHook.IsWorldSpawnerEnabled
- ScriptHook.SetWorldImpostorEnabled
- ScriptHook.IsWorldImpostorEnabled
Camera
- ScriptHook.CameraSetCustom
- ScriptHook.CameraReset
- ScriptHook.SetLocalPlayerFreeCamera
- ScriptHook.HasLocalPlayerFreeCamera
- ScriptHook.SetFreeCameraSpeeds