VScript: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
__NOTOC__
__NOTOC__
'''VScript''', introduced since {{l4d2|4}} and later backported to {{tf2|4}} (as well as {{hl2dm}}, {{css}}, {{dods}},{{hldms}}, and {{src13mp}} SDK Base), is a virtual machine for scripting that acts as an abstract binding layer between the {{source|4}} and {{source2|4}} engine and external scripts. According to the {{astools|4.1}}, the following scripting languages are supported or could be in the near future:
'''VScript''', introduced since {{l4d2|4}} and later backported to {{tf2|4}} (and [[TF2 branch|other games on its branch]]), is a virtual machine for scripting that acts as an abstract binding layer between the {{source|4}} and {{source2|4}} engine and external scripts. According to the {{astools|4.1}}, the following scripting languages are supported or could be in the near future:


* [[Squirrel]]
* [[Squirrel]]

Revision as of 09:47, 22 February 2025

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

VScript, introduced since Left 4 Dead 2 Left 4 Dead 2 and later backported to Team Fortress 2 Team Fortress 2 (and other games on its branch), is a virtual machine for scripting that acts as an abstract binding layer between the Source Source and Source 2 Source 2 engine and external scripts. According to the Alien Swarm - SDK Alien Swarm - SDK, the following scripting languages are supported or could be in the near future:

Implementations

Squirrel Squirrel

Team Fortress 2 Team Fortress 2

Script Examples
List of Script Functions

Source 2013 Multiplayer SDK Base 2013 - MP (2025) (Counter-Strike: Source Day of Defeat: Source Half-Life 2: Deathmatch Half-Life Deathmatch: Source)

Todo: All of these games runs on same branch as Team Fortress 2. Any non-game specific functionality is inherited, but no additional game-specific functionality is added.
Script Examples

Counter-Strike: Source Counter-Strike: Source

Game Events
Script Examples

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

Portal 2: Community Edition Portal 2: Community Edition

Vscript documentation is covered on its wiki: Vscript API Reference

Source Filmmaker Source Filmmaker

Team Fortress 2 Only exists on the SFM build of TF2. No TF2 or 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

Titanfall Titanfall

Alien Swarm: Reactive Drop Alien Swarm: Reactive Drop

List of Script Functions

Mapbase Mapbase (Custom implementation)

Scripting
Script Functions

Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3

List of Script Functions

Lua Lua

Portal 2 Portal 2 (Client/UI only)

VGUI Category

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
Scripting API
General Source 2 Source 2
Source 2 Animation System VScript API

Jabroni Brawl: Episode 3 Jabroni Brawl: Episode 3

List of Script Functions

Python Python

Team Fortress 2 Team Fortress 2
Source Filmmaker Source Filmmaker
Scripting/Rigging

See also