VScript: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
mNo edit summary  | 
				SirYodaJedi (talk | contribs)   | 
				||
| (34 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{LanguageBar}}  | {{LanguageBar}}  | ||
__NOTOC__  | __NOTOC__  | ||
'''VScript''', introduced since {{l4d2|4}} and later backported to {{tf2|4}}, 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]]  | ||
| Line 14: | Line 14: | ||
===[[Squirrel]] {{sq}}===  | ===[[Squirrel]] {{sq}}===  | ||
{{tf2|  | |||
:[[  | {{srcsdk13mp|4|nt=short|addtext={{nbsp}}(2025)}} ({{tf2}} {{css}} {{dods}} {{hl2dm}} {{hldms}}) / {{tf2branch|3}}  | ||
:[[Team Fortress 2/Scripting/Script Functions|List of Script Functions]]  | :All of these games runs on same branch as {{tf2}}. Any non-game specific functionality is inherited, but no additional game-specific functionality is added.  | ||
:[[Source 2013 MP/Scripting/VScript Examples|Script Examples]]  | |||
:[[Source 2013 MP/Scripting/Game Events|Game Events]]  | |||
:{{tf2|4}}  | |||
::[[Team Fortress 2/Scripting/Script Functions|List of Script Functions]]  | |||
::[[Team Fortress 2/Scripting/VScript Examples|Script Examples]]  | |||
::[[Team Fortress 2/Scripting/Game Events|Game Events]]  | |||
:{{css|4}}  | |||
::[[Counter-Strike: Source/Scripting/VScript Examples|Script Examples]]  | |||
::[[Counter-Strike: Source/Scripting/Game Events|Game Events]]  | |||
:{{dods|4}}  | |||
::[[Day of Defeat: Source/Scripting/Game Events|Game Events]]  | |||
:{{hl2dm|4}}  | |||
::[[Half-Life 2: Deathmatch/Scripting/Game Events|Game Events]]  | |||
:{{hldms|4}}  | |||
::[[Half-Life Deathmatch: Source/Scripting/Game Events|Game Events]]  | |||
{{l4d2|4}}  | {{l4d2|4}}  | ||
| Line 25: | Line 45: | ||
{{as|4}}  | {{as|4}}  | ||
:[[Alien Swarm/Scripting/Script Functions|List of Script Functions]]  | |||
{{portal2|4}}  | {{portal2|4}}  | ||
:[[List of Portal 2 Script Functions|List of Script Functions]]  | :[[List of Portal 2 Script Functions|List of Script Functions]]  | ||
{{  | {{Strata|4}}  | ||
:  | :{{p2ce|4}}  | ||
::VScript documentation is covered on its wiki: [https://wiki.stratasource.org/vscript/reference/Globals VScript API Reference]  | |||
{{sfm|4}}  | {{sfm|4}}  | ||
:{{tf2}} Only exists on the SFM build of TF2. No TF2 or SFM-specific API. Unused.  | :{{tf2}} Only exists on the SFM build of TF2. No TF2 or SFM-specific API. Unused.  | ||
| Line 46: | Line 69: | ||
{{titanfall|4}}  | {{titanfall|4}}  | ||
:[[Titanfall/Scripting/Server Script Functions|List of Server Script Functions]]  | |||
:[[Titanfall/Scripting/Client Script Functions|List of Client Script Functions]]  | |||
:[[Titanfall/Scripting/UI Script Functions|List of UI Script Functions]]  | |||
{{Titanfall2|4}}  | |||
:[[Titanfall 2/Scripting/Server Script Functions|List of Server Script Functions]]  | |||
{{apex|4}}  | |||
{{asrd|4}}  | {{asrd|4}}  | ||
| Line 55: | Line 86: | ||
{{jbep3|4}}  | {{jbep3|4}}  | ||
:[[List of Jabroni Brawl: Episode 3 Script Functions|List of Script Functions]]  | :[[List of Jabroni Brawl: Episode 3 Script Functions|List of Script Functions]]  | ||
{{ddd|4}}  | |||
:[[Dino D-Day/Scripting/Script Functions|List of Script Functions]]  | |||
{{Rl|4}}  | |||
:[[Revelations 2012/Scripting/Script Functions|List of Script Functions]]  | |||
|style=padding-right:2em|  | |style=padding-right:2em|  | ||
===Lua {{lua}}===  | ===Lua {{lua}}===  | ||
<!-- GMOD uses GLua which is not the same as VScript, don't add it here. -->  | |||
{{dota2|4}}  | {{dota2|4}}  | ||
:[[Dota_2_Workshop_Tools/Scripting|Scripting]]  | :[[Dota_2_Workshop_Tools/Scripting|Scripting]]  | ||
:[[Dota_2_Workshop_Tools/Scripting/API|Scripting API]]  | :[[Dota_2_Workshop_Tools/Scripting/API|Scripting API]]  | ||
{{svrh|4}}  | {{svrh|4}}  | ||
| Line 91: | Line 121: | ||
|}  | |}  | ||
==See also==  | == See also ==  | ||
* [[VScript Fundamentals]]  | * [[VScript Fundamentals]]  | ||
*[[List of Script Libraries]]  | *[[List of Script Libraries]]  | ||
| Line 97: | Line 127: | ||
*{{ent|logic_script}} (entity)  | *{{ent|logic_script}} (entity)  | ||
*{{ent|script}}, {{ent|script_execute}} (console command)  | *{{ent|script}}, {{ent|script_execute}} (console command)  | ||
== External Links ==  | |||
* [https://vscripts.lavashik.dev An interactive VScript Book for Beginners]  | |||
[[Category:VScript]]  | [[Category:VScript]]  | ||
[[Category:Technical]]  | [[Category:Technical]]  | ||
[[Category:Scripting]]  | [[Category:Scripting]]  | ||
Latest revision as of 05:22, 31 October 2025
VScript, introduced since 
 Left 4 Dead 2 and later backported to 
 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 and 
 Source 2 engine and external scripts. According to the 
 Alien Swarm - SDK, the following scripting languages are supported or could be in the near future:
Implementations
Squirrel 
 | 
Lua 
 | 
Python 
 | 
See also
- VScript Fundamentals
 - List of Script Libraries
 - Entity Scripts
 - logic_script (entity)
 - script, script_execute (console command)