Logic script: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{sq}} {{base point multi|logic_script|game1=Left 4 Dead 2|game2=Alien Swarm|game3=Portal 2}}
{{toc-right}}


== Entity description ==
[[File:Logic_script.png|left]]
A container for [[VScript|scripts]]. In Left 4 Dead 2, for example, this entity is used extensively for the logic in "carnival games" found in the Dark Carnival campaign, such as ''Peanut Gallery'', ''Strongman Contest'', ''Whack-a-Stach'', etc.
 
{{base point|logic_script|since=Left 4 Dead 2}} It is a container for {{sq}} [[VScript]]s. In Left 4 Dead 2, for example, this entity is used extensively for the logic in "carnival games" found in the Dark Carnival campaign, such as ''Peanut Gallery'', ''Strongman Contest'', ''Whack-a-Stach'', etc. <div style="clear:left"></div>
 
==See also==
* [[L4D2 Vscripts]]
* [[Left 4 Dead 2 Tool Updates]]
* [[trigger_finale]]
 
==External links==
* [http://forums.steampowered.com/forums/showthread.php?t=1238461 It's the vscript'ing documentation FAQ! (Steam Forums)]
* [http://www.leeland.net/l4d2-scripting.html Scripting for Left 4 Dead 2 (Leeland.net)] - Example uses of logic_script


==KeyValues==
==KeyValues==
Line 15: Line 25:
== Outputs ==
== Outputs ==
{{O Targetname}}
{{O Targetname}}
==See also==
* [[L4D2 Vscripts]]
* [[Left 4 Dead 2 Tool Updates]]
* [[Trigger_finale|trigger_finale]]
==External links==
* [http://forums.steampowered.com/forums/showthread.php?t=1238461 It's the vscript'ing documentation FAQ! (Steam Forums)]
* [http://www.leeland.net/l4d2-scripting.html Scripting for Left 4 Dead 2 (Leeland.net)] - Example uses of logic_script

Revision as of 11:05, 28 June 2011

Logic script.png

Template:Base point It is a container for Squirrel VScripts. In Left 4 Dead 2, for example, this entity is used extensively for the logic in "carnival games" found in the Dark Carnival campaign, such as Peanut Gallery, Strongman Contest, Whack-a-Stach, etc.

See also

External links

KeyValues

EntityGroup[0] ([todo internal name (i)]) to EntityGroup[15] <targetname>
Entities to add in the EntityGroup array for the script.
Note.pngNote:The array can be extended beyond 16 entities. Simply add additional Group## keys with SmartEdit turned off.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Note.pngNote:logic_script in L4D2 is missing KeyValues for Entity Scripts and Script think function. These additional keys can to be added to the entity with SmartEdit turned off as vscripts <string> and thinkfunction <string>, respectively.

Inputs

Outputs