VScript: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Team Fortress 2 now has vscript support)
(For now, clarified that the TF2 VScript is in another branch)
Line 18: Line 18:
===[[Squirrel]] {{sq}}===
===[[Squirrel]] {{sq}}===


{{tf2|4}} (Added on 4th November 2022)
{{tf2|4}} (in <code>vscript_test</code> branch)
:[[TF2 Vscript Examples|Script Examples]]
:[[TF2 Vscript Examples|Script Examples]]
:[[List of TF2 Script Functions|List of Script Functions]]
:[[List of TF2 Script Functions|List of Script Functions]]

Revision as of 05:59, 5 November 2022

English (en)Español (es)Русский (ru)中文 (zh)Translate (Translate)

VScript, introduced in Left 4 Dead 2 Left 4 Dead 2, is a virtual machine for scripting that acts as an abstract binding layer between the Source Source engine and external scripts. According to the Alien Swarm Alien Swarm SDK , the following scripting languages are supported or could be in the near future:

Script files are read from /scripts/vscripts/ inside the game directory.

To learn how VScripts are used, see VScript Fundamentals.

Implementations

Squirrel Squirrel

Team Fortress 2 Team Fortress 2 (in vscript_test branch)

Script Examples
List of Script Functions

Left 4 Dead 2 Left 4 Dead 2

Scripting
Director Scripts
Script Examples
List of Script Functions

Alien Swarm Alien Swarm

Portal 2 Portal 2

List of Script Functions

Source Filmmaker Source Filmmaker

No SFM-specific API. Unused.

Counter-Strike: Global Offensive Counter-Strike: Global Offensive

List of Script Functions
Listening to game events
VScript Examples

Contagion Contagion

List of Script Functions

Nuclear Dawn Nuclear Dawn

List of Script Functions

Template:Tf

Alien Swarm: Reactive Drop Alien Swarm: Reactive Drop

List of Script Functions

Mapbase Mapbase (Custom implementation)

Scripting
GitHub

Lua Lua

Portal 2 Portal 2 (Client/UI only)

Dota 2 Dota 2

Scripting
Scripting API

Garry's Mod Garry's Mod

SteamVR Home SteamVR Home

Scripting
Scripting API
Scripted Tool Creation
Scripted Flashlight Tool Tutorial

Half-Life: Alyx Half-Life: Alyx

Scripting
Scripting API
General Source 2 Source 2
Source 2 Animation System VScript API

Python

Source Filmmaker Source Filmmaker
Scripting/Rigging

See Also