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.ToggleWorldSpawner]]
+
*[[ScriptHook.SetWorldSpawnerEnabled]]
 
*[[ScriptHook.IsWorldSpawnerEnabled]]
 
*[[ScriptHook.IsWorldSpawnerEnabled]]
*[[ScriptHook.ToggleWorldImpostor]]
+
*[[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