Point template: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
Line 13: Line 13:
==Keyvalues==
==Keyvalues==
* {{kv targetname}}
* {{kv targetname}}
* '''Template01'''
* '''Template''01-16'''''
: <target_destination>
* '''Template02'''
: <target_destination>
* '''Template03'''
: <target_destination>
* '''Template04'''
: <target_destination>
* '''Template05'''
: <target_destination>
* '''Template06'''
: <target_destination>
* '''Template07'''
: <target_destination>
* '''Template08'''
: <target_destination>
* '''Template09'''
: <target_destination>
* '''Template10'''
: <target_destination>
* '''Template11'''
: <target_destination>
* '''Template12'''
: <target_destination>
* '''Template13'''
: <target_destination>
* '''Template14'''
: <target_destination>
* '''Template15'''
: <target_destination>
* '''Template16'''
: <target_destination>
: <target_destination>
==Flags==
==Flags==
* 1 : Don't remove template entities
* 1 : Don't remove template entities

Revision as of 13:12, 12 August 2005

Template:Wrongtitle

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.

Keyvalues

<target_destination>

Flags

  • 1 : Don't remove template entities
  • 2 : Preserve entity names (Don't do name fixup)

Inputs

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

Outputs

  • OnEntitySpawned
Fired after spawning an instance of this template.