SteamVR/Environments/Scripting: Difference between revisions
< SteamVR | Environments
Jump to navigation
Jump to search
m (Added description on how to run scripts.) |
No edit summary |
||
Line 18: | Line 18: | ||
== Reference == | == Reference == | ||
* [[Destinations/Scripting/API|Scripting API]] | * [[Destinations/Scripting/API|Scripting API]] | ||
== Examples == | |||
* [[Destinations/Scripting/Lua Scripting Intro| Lua Scripting Intro]] | |||
* [[Destinations/Scripting/Linking Lua with Hammer| Linking Lua with Hammer]] | |||
* [[Destinations/Scripting/Linking Lua with Javascript| Linking Lua with Javascript]] | |||
== Lua Resources == | |||
* [http://www.lua.org/ Official Lua Website] | |||
* [http://www.lua.org/pil/ Programming in Lua] - Good resource for learning Lua. If you're new to Lua or programming this is a good reference point to start from. | |||
* [http://www.lua.org/pil/contents.html Programming In Lua - Online] - First edition of the above book is available online for free. | |||
[[Category:Destinations]] | [[Category:Destinations]] |
Revision as of 16:04, 21 September 2016
Destinations includes the VScript scripting system with an extensive API, allowing many modifications and extensions to the game, including access of the VR motion controllers. Scripting in Destinations is done using the Lua language.
Many of the Dota 2 scripting features also apply to Destinations. Some of the links below may have inconsistencies when scripting for Destinations instead of Dota 2.
Getting Started
There are two main ways of running scripts in Destinations. Map scripts are executed when the specific map is loaded, and receive callbacks from the scripting system on certain events. Entity Scripts are set up on specific entities and execute when the entity is spawned.
Common Techniques
Reference
Examples
Lua Resources
- Official Lua Website
- Programming in Lua - Good resource for learning Lua. If you're new to Lua or programming this is a good reference point to start from.
- Programming In Lua - Online - First edition of the above book is available online for free.