Point script template: Difference between revisions
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Ent not in fgd|nolink=1|because=[[point_template]] already is an accessible option}} | {{Ent not in fgd|nolink=1|because=[[point_template]] already is an accessible option}} | ||
{{CD|CPointScriptTemplate}} | {{CD|CPointScriptTemplate|file1=1}} | ||
{{this is a|point entity|name=point_script_template|game=Left 4 Dead 2}} It is also available in {{ | {{this is a|point entity|name=point_script_template|game=Left 4 Dead 2}} It is also available in {{tf2branch|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. | ||
Line 11: | Line 11: | ||
When [[L4D2_EMS/ConfigureHammerForEntityGroupCompilation|compiling Entity Groups]],<code>point_template</code> entities are converted to<code>point_script_template</code>. | When [[L4D2_EMS/ConfigureHammerForEntityGroupCompilation|compiling Entity Groups]],<code>point_template</code> entities are converted to<code>point_script_template</code>. | ||
{{OtherKIO|point_template|All}} | |||
== Vscript functions == | == Vscript functions == | ||
Line 26: | Line 28: | ||
|Cache the group spawn tables. | |Cache the group spawn tables. | ||
|} | |} | ||
== See also == | == See also == | ||
Line 41: | Line 33: | ||
* [[Left 4 Dead 2/Script Functions#CPointScriptTemplate|CPointScriptTemplate VScript Functions]] | * [[Left 4 Dead 2/Script Functions#CPointScriptTemplate|CPointScriptTemplate VScript Functions]] | ||
* [[Left 4 Dead 2/Script Functions#CPointTemplate|CPointTemplate VScript Functions]] | * [[Left 4 Dead 2/Script Functions#CPointTemplate|CPointTemplate VScript Functions]] | ||
<!-- for cats not added by {{this is a}} template --> | |||
[[Category:Team Fortress 2 entities]] | |||
[[Category:Team Fortress 2 point entities]] |
Latest revision as of 01:06, 24 April 2025

It should not be put directly in a map because point_template already is an accessible option.
![]() |
---|
CPointScriptTemplate |
![]() |
point_script_template
is a point entity available in Left 4 Dead 2. It is also available in
Team Fortress 2 branch.
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 similar to topoint_template
, however it does NOT have precaching or name fixups. The number of templates is unlimited unlike point_template
, although they can only be added by the AddTemplate
function.
See the VScript documentation for details on usage.
When compiling Entity Groups,point_template
entities are converted topoint_script_template
.

Keyvalues / Inputs / Outputs
are same as point_template.Vscript functions
Function | Signature | Description |
---|---|---|
AddTemplate
|
void AddTemplate(string classname, handle keyvalues)
|
Add an entity to the template spawner with the specified classnames (similar to SpawnEntityFromTable }
|
SetGroupSpawnTables
|
void SetGroupSpawnTables(handle, handle)
|
Cache the group spawn tables. |
See also
- point_template - Non-script version of this entity
- CPointScriptTemplate VScript Functions
- CPointTemplate VScript Functions