Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Point template
From HalfLife 2 Knowledge Base
Contents |
point_template
Source(core) Point Entity
description
Turns an entity, or set of entities, into a single template that can be instanced anywhere, and multiple times. If there are interdependencies (entity I/O, hierarchy, or other name references) between the entities in the template, the entities in the template will have their names changed and the interdependencies will be reconnected to the changes names. The name change format is as follows: '<original name>&0000', where the 0000 will be replaced with the current global template instance, so wildcard searches for '<original name>*' will still find them. If you don't want the name fixup to happen, because you're only spawning the template once, or you want inputs to trigger all instances of the template, check the 'Preserve entity names' spawnflag. To spawn the template in other places, use an env_entity_maker.
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Template 1 Template01(target_destination)
- Template 2 Template02(target_destination)
- Template 3 Template03(target_destination)
- Template 4 Template04(target_destination)
- Template 5 Template05(target_destination)
- Template 6 Template06(target_destination)
- Template 7 Template07(target_destination)
- Template 8 Template08(target_destination)
- Template 9 Template09(target_destination)
- Template 10 Template10(target_destination)
- Template 11 Template11(target_destination)
- Template 12 Template12(target_destination)
- Template 13 Template13(target_destination)
- Template 14 Template14(target_destination)
- Template 15 Template15(target_destination)
- Template 16 Template16(target_destination)
spawn flags
- 1: Don't remove template entities - default: OFF
- 2: Preserve entity names (Don't do name fixup) - default: ON
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - ForceSpawn(void)
Spawn an instance of the template at the original position.
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input. - OnEntitySpawned(void)
Fired after spawning an instance of this template.
related tutorials
Submit your tutorial for point_template

