Logic script

From Valve Developer Community
Revision as of 01:40, 10 June 2011 by Barracuda (talk | contribs) (Cleaned up and made it less L4D2 specialized)
Jump to navigation Jump to search

Squirrel Template:Base point multi

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.
Note.pngNote:The array can be extended beyond 16 entities. Simply add additional EntityGroup## 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

Inputs

Outputs

See also

External links