Difference between revisions of "VScript"

From Valve Developer Community
Jump to: navigation, search
m (Add link)
(Add TF2, sort by developer and release date)
Line 10: Line 10:
 
* [http://en.wikipedia.org/wiki/Python_%28programming_language%29 Python]
 
* [http://en.wikipedia.org/wiki/Python_%28programming_language%29 Python]
  
Script files are placed and executed in <code>scripts/vscripts/</code> inside the game folder.
+
Script files are read from <code>/scripts/vscripts/</code> inside the game directory.
  
 
==Implementations==
 
==Implementations==
Line 21: Line 21:
 
:[[List of L4D2 Script Functions|List of Script Functions]]
 
:[[List of L4D2 Script Functions|List of Script Functions]]
  
;{{game link|Nuclear Dawn}}
 
:[[List of ND Script Functions|List of Script Functions]]
 
 
;{{game link|Alien Swarm}}
 
;{{game link|Alien Swarm}}
  
 
;{{game link|Portal 2}}
 
;{{game link|Portal 2}}
 
:[[List of Portal 2 Script Functions|List of Script Functions]]
 
:[[List of Portal 2 Script Functions|List of Script Functions]]
 +
 +
;{{game link|Team Fortress 2}}
 +
:{{sfm}} Only exists on the SFM build of the game. No TF2 or SFM specific API. Unused.
  
 
;{{game link|Counter-Strike: Global Offensive}}
 
;{{game link|Counter-Strike: Global Offensive}}
Line 35: Line 36:
 
;{{game link|Contagion}}
 
;{{game link|Contagion}}
 
:[[List of Contagion Script Functions|List of Script Functions]]
 
:[[List of Contagion Script Functions|List of Script Functions]]
 +
 +
;{{game link|Nuclear Dawn}}
 +
:[[List of ND Script Functions|List of Script Functions]]
 +
 +
;{{game link|Titanfall}}
  
 
;{{game link|Alien Swarm: Reactive Drop}}
 
;{{game link|Alien Swarm: Reactive Drop}}
 
:[[List of Reactive Drop Script Functions|List of Script Functions]]
 
:[[List of Reactive Drop Script Functions|List of Script Functions]]
 
;{{game link|Titanfall}}
 
  
 
===Lua===
 
===Lua===

Revision as of 17:22, 21 May 2020

Русский 简体中文

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 engine and external scripts. According to the Alien Swarm Alien Swarm SDK, the following scripting languages are, or could be supported in the near future:

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

Implementations

Squirrel

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
Team Fortress 2 Team Fortress 2
Source Filmmaker Only exists on the SFM build of the game. No TF2 or SFM specific API. Unused.
Counter-Strike: Global Offensive Counter-Strike: Global Offensive
List of Script Functions
Listening to game events
Script Examples
Contagion Contagion
List of Script Functions
Nuclear Dawn Nuclear Dawn
List of Script Functions
<Titanfall> Titanfall
Alien Swarm: Reactive Drop Alien Swarm: Reactive Drop
List of Script Functions

Lua

Portal 2 Portal 2 (Client/UI only)
Dota 2 Dota 2
Scripting
Scripting API
SteamVR Home SteamVR Home
Scripting
Scripting API
Scripted Tool Creation
Scripted Flashlight Tool Tutorial
Half-Life: Alyx Half-Life: Alyx
Scripting API
General Source 2
Source 2 Animation System VScript API

Python

Source Filmmaker Source Filmmaker
Scripting/Rigging

Scripting Fundamentals

Main article Vscript Fundamentals

See also