Logic script: Difference between revisions
Jump to navigation
Jump to search
Note:The array can be extended beyond 16 entities. Simply add additional EntityGroup## keys with SmartEdit turned off.
No edit summary |
(Cleaned up and made it less L4D2 specialized) |
||
Line 1: | Line 1: | ||
{{sq}}{{ | {{sq}} {{base point multi|logic_script|game1=Left 4 Dead 2|game2=Alien Swarm|game3=Portal 2}} | ||
== Entity description == | |||
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. | |||
==KeyValues== | ==KeyValues== | ||
{{KV|EntityGroup[0]|to=EntityGroup[15]|target_destination|Entities to add in the EntityGroup array for the script.}} | |||
{{Note|The array can be extended beyond 16 entities. Simply add additional EntityGroup## keys with SmartEdit turned off.}} | |||
{{Note|The array can be extended beyond 16 entities. Simply add additional | |||
{{KV Targetname}} | {{KV Targetname}} | ||
== Inputs == | |||
==Inputs== | |||
{{I Targetname}} | {{I Targetname}} | ||
==Outputs== | == Outputs == | ||
{{O Targetname}} | {{O Targetname}} | ||
==See also== | ==See also== | ||
*[[L4D2 Vscripts]] | * [[L4D2 Vscripts]] | ||
*[[ | * [[Left 4 Dead 2 Tool Updates]] | ||
*[[ | * [[Trigger_finale|trigger_finale]] | ||
==External links== | ==External links== | ||
*[http://forums.steampowered.com/forums/showthread.php?t=1238461 It's the vscript'ing documentation FAQ! (Steam Forums)] | * [http://forums.steampowered.com/forums/showthread.php?t=1238461 It's the vscript'ing documentation FAQ! (Steam Forums)] | ||
Revision as of 01:40, 10 June 2011
Entity description
A container for 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.
KeyValues
- EntityGroup[0] ([todo internal name (i)]) to EntityGroup[15] <targetname>
- Entities to add in the EntityGroup array for the script.

- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities