Point script template: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (turned things into templates)
m (changed up the description and the not in fgd template. Also removed fgd todo note, since it seemed unneeded)
Line 1: Line 1:
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1|because=[[point_template]] already is an accessible option}}


{{l4d2 point|point_script_template}} It is point_template, but with internal elements of it readjusted for vscripts. point_template relies on the map file to function properly; Trying to spawn entities with point_template created by scripts will return that it has no templates, though it will still delete its own template entities.
{{l4d2 point|point_script_template}} It is [[point_template]], but with internal elements of it readjusted for vscripts. Specifically,<code>point_template</code>relies on compiled data from the map file to function properly, as trying to spawn entities with<code>point_template</code>created by scripts will return that it has no templates, even though it still can delete its own template entities.


Otherwise, this entity can be taken the same as working on a point_template entity, so the quirks such as point_template's name fixup behaviour, will need to be taken into account.
Otherwise, this entity can be taken the same as working on a<code>point_template</code>entity, so things like name fixup behaviour quirks may still need to be taken into account.


When [[L4D2_EMS/ConfigureHammerForEntityGroupCompilation|compiling Entity Groups]], point_template entities are converted to point_script_template.  
When [[L4D2_EMS/ConfigureHammerForEntityGroupCompilation|compiling Entity Groups]],<code>point_template</code> entities are converted to<code>point_script_template</code>.  


== Keyvalues ==
== Keyvalues ==
Line 18: Line 18:
== Outputs ==
== Outputs ==
{{O PointTemplate}}
{{O PointTemplate}}
== FGD Code ==
{{todo|Script entities are seen in TLS .lmp files, so it may be wise to let mappers see it while inspecting them in Hammer.}}


== See also ==
== See also ==

Revision as of 03:13, 14 April 2021

Icon-NotInFGD.png
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.

Template:L4d2 point It is point_template, but with internal elements of it readjusted for vscripts. Specifically,point_templaterelies on compiled data from the map file to function properly, as trying to spawn entities withpoint_templatecreated by scripts will return that it has no templates, even though it still can delete its own template entities.

Otherwise, this entity can be taken the same as working on apoint_templateentity, so things like name fixup behaviour quirks may still need to 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

Template:Fl PointTemplate

Inputs

ForceSpawn
Spawn an instance of the template at the original position.


Outputs

Template:O PointTemplate

See also