Point script template: Difference between revisions
Jump to navigation
Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
|||
Line 2: | Line 2: | ||
{{CD|CPointScriptTemplate}} | {{CD|CPointScriptTemplate}} | ||
{{ | {{this is a|name=point_script_template|e0|game=Left 4 Dead 2}} It is also available in {{tf2|4}}. | ||
It is a version of [[point_template]] readjusted to work for spawning-on-runtime, such as VScripts. | It is a version of [[point_template]] readjusted to work for spawning-on-runtime, such as VScripts. | ||
Revision as of 12:26, 4 January 2024

This entity is not in the FGD by default.
It should not be put directly in a map because point_template already is an accessible option.
It should not be put directly in a map because point_template already is an accessible option.
![]() |
---|
CPointScriptTemplate |
point_script_template
is an e0 available in Left 4 Dead 2. It is also available in
Team Fortress 2.
It is a version of point_template readjusted to work for spawning-on-runtime, such as VScripts.
Thepoint_template
entity relies on compiled data from the map file to function properly, so trying to spawn entities with apoint_template
made by scripts will return it having no templates and fail, even though it still can delete its own template entities.
This entity is identical topoint_template
, so things like name fixup behavior quirks should still be taken into account.
When compiling Entity Groups,point_template
entities are converted topoint_script_template
.
Vscript functions
Todo: explain more
Function | Signature | Description |
---|---|---|
AddTemplate
|
void AddTemplate(string, handle)
|
Add an entity to the template spawner. |
SetGroupSpawnTables
|
void SetGroupSpawnTables(handle, handle)
|
Cache the group spawn tables. |
Keyvalues
- 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
- Template 1 (Template01) to Template 16 <targetname>
- Targetname(s) to search for entities to template. These can be exact matches, or wildcards (*). If multiple entities are matched, all entities will be included in the template.
Flags
Inputs
- ForceSpawn
- Spawn an instance of the template at the original position.
Outputs
See also
- point_template - Non-script version of this entity
- CPointScriptTemplate VScript Functions
- CPointTemplate VScript Functions