Point script template: Difference between revisions
Jump to navigation
Jump to search
m (changed up the description and the not in fgd template. Also removed fgd todo note, since it seemed unneeded) |
No edit summary |
||
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}} | ||
{{l4d2 point|point_script_template}} It is [[point_template]] | {{l4d2 point|point_script_template}} | ||
It is a version of [[point_template]] readjusted to work for spawning-on-runtime, such as VScripts. | |||
The<code>point_template</code>entity relies on compiled data from the map file to function properly, so trying to spawn entities with a<code>point_template</code>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 to<code>point_template</code>, so things like name fixup behavior quirks should still be taken into account. | |||
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>. | ||
Line 20: | Line 23: | ||
== See also == | == See also == | ||
* [[point_template]] - Non script version of this entity | * [[point_template]] - Non-script version of this entity | ||
* [[List_of_L4D2_Script_Functions#CPointScriptTemplate|CPointScriptTemplate VScript Functions]] | * [[List_of_L4D2_Script_Functions#CPointScriptTemplate|CPointScriptTemplate VScript Functions]] | ||
* [[List_of_L4D2_Script_Functions#CPointTemplate|CPointTemplate VScript Functions]] | * [[List_of_L4D2_Script_Functions#CPointTemplate|CPointTemplate VScript Functions]] |
Revision as of 21:55, 7 November 2022

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.
Template:L4d2 point 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
.
Keyvalues
- 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