point_template
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.<br><br>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.<br><br>To spawn the template in other places, use an env_entity_maker.
- FGD
@PointClassingame/core/base.fgd, basesTargetname, Parentname, CanBeClientOnly. - cs_script type:
PointTemplate, whatFindEntitiesByClass("point_template")returns. - Native class:
CPointTemplate(curated pairing).
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2
Inputs (24)
| Name | Parameter | From | Description |
|---|---|---|---|
RunScriptFile | string | VScript | Load and execute a script file |
RunScriptCode | string | VScript | Execute a fragment of script code |
CallScriptFunction | string | VScript | Call a script function |
CallPrivateScriptFunction | string | VScript | Calls a script function from this entity's private script scope. |
CallGlobalScriptFunction | string | VScript | Calls a script function in the global script scope. |
Kill | GameEntity | Removes this entity from the world. | |
KillHierarchy | GameEntity | Removes this entity and all its children from the world. | |
KillConstrained | GameEntity | Removes this entity, all its children, and anything constrained to it, from the world. | |
AddOutput | string | GameEntity | Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care. |
FireUser1 | GameEntity | Causes this entity's OnUser1 output to be fired. | |
FireUser2 | GameEntity | Causes this entity's OnUser2 output to be fired. | |
FireUser3 | GameEntity | Causes this entity's OnUser3 output to be fired. | |
FireUser4 | GameEntity | Causes this entity's OnUser4 output to be fired. | |
EnableAutoSleeping | GameEntity | Enable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest. | |
DisableAutoSleeping | GameEntity | Disable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep. | |
SetParent | api | Parentname | |
SetParentWithOffset | api | Parentname | |
SetParentMaintainOffset | api | Parentname | |
SetParentAttachment | string | Parentname | Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. |
SetParentAttachmentMaintainOffset | string | Parentname | Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the parent at the time it is attached. |
ClearParent | Parentname | Removes this entity from the the movement hierarchy, leaving it free to move independently. | |
FollowEntity | string | Parentname | Bone merges this entity to a parent entity. Call again passing nothing to end the bone merge. |
ForceSpawn | api | ||
DeleteCreatedSpawnGroups | api |
Outputs (6)
| Name | Parameter | From | Description |
|---|---|---|---|
OnUser1 | GameEntity | Fired in response to FireUser1 input. | |
OnUser2 | GameEntity | Fired in response to FireUser2 input. | |
OnUser3 | GameEntity | Fired in response to FireUser3 input. | |
OnUser4 | GameEntity | Fired in response to FireUser4 input. | |
OnKilled | GameEntity | Fired when the entity is killed and removed from the game. Parameter is the inflictor. | |
OnEntitySpawned | api |
Keyvalues (79)
The names Hammer saves and the KeyValue input and AddOutput take at run time. An entity reads some keys only when it spawns, so changing one later may do nothing. Integer keys such as movetype take engine numbers, not the renumbered cs_script enum values.
| Key | Type | Default | From | Description |
|---|---|---|---|---|
vscriptsEntity Scripts | scriptlist | VScript | Name(s) of script files that are executed after all entities have spawned. | |
targetnameName | target_source | Targetname | The name that other entities refer to this entity by. | |
parentnameParent | target_destination | Parentname | The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. | |
parentAttachmentNameParent Bone/Attachment Name | parentAttachment | Parentname | The name of the bone or attachment to attach to on the entity's parent in the movement hierarchy. Use !bonemerge to use bone-merge style attachment. NOTE: If this is specified the Hammer transform will be disregarded, even if 'Use Local Transform' is NOT specified (in that case local transform will be identity) | |
useLocalOffsetUse Local Transform | boolean | 0 | Parentname | Whether to respect the specified local offset when doing the initial hierarchical attachment to its parent. |
local.originLocal Origin | vector | Parentname | Offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. | |
local.anglesLocal Angles | angle | Parentname | Angular offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. | |
local.scalesLocal Scale | vector | 1 1 1 | Parentname | Scale in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. |
clientSideEntityCreate Client-Only Entity | intchoices | 0 | CanBeClientOnly |
|
spawnflags | flags |
| ||
asynchronousAsynchronous Spawn | boolean | 0 | Allows you to asynchronously spawn the entities referred to by the point template, which will happen at some point later after all dependent resources are downlaoded from UGC servers + asynch streamed in. Asynch point templates have the benefit that they don't precache resources that we never spawn. | |
timeoutIntervalTimeout Interval | float | 0 | The amount of seconds after which, if any client hasn't finished streaming the necessary assets, that client is disconnected and the template spawns anyways. Only used in asynchronous point_templates. 0 means use some reasonable default set in the code. | |
entityFilterNameEntity Filter Name | string | Name of an entity filter that can be run on the entities in the template to modify, add, or remove the entities. These filters can be defined in code or in script. | ||
spawnGroupTypeSpawn Group Type | choices | INSERT_INTO_POINT_TEMPLATE_SPAWN_GROUP |
| |
clientOnlyEntityBehaviorClient Only Entity Behavior | choices | CREATE_FOR_CURRENTLY_CONNECTED_CLIENTS_ONLY | This controls the behavior of client only entities spawned by the point_template. Either you can create them only for clients that are currently connected at the point the point_template is spawned (good for transient things like explosions), or you can create them for clients who connect after the point_template is spawned. This behavior only affects point_templates that create their own spawn groups.
| |
Template01Template 1 | target_destination | |||
Template02Template 2 | target_destination | |||
Template03Template 3 | target_destination | |||
Template04Template 4 | target_destination | |||
Template05Template 5 | target_destination | |||
Template06Template 6 | target_destination | |||
Template07Template 7 | target_destination | |||
Template08Template 8 | target_destination | |||
Template09Template 9 | target_destination | |||
Template10Template 10 | target_destination | |||
Template11Template 11 | target_destination | |||
Template12Template 12 | target_destination | |||
Template13Template 13 | target_destination | |||
Template14Template 14 | target_destination | |||
Template15Template 15 | target_destination | |||
Template16Template 16 | target_destination | |||
Template17Template 17 | target_destination | |||
Template18Template 18 | target_destination | |||
Template19Template 19 | target_destination | |||
Template20Template 20 | target_destination | |||
Template21Template 21 | target_destination | |||
Template22Template 22 | target_destination | |||
Template23Template 23 | target_destination | |||
Template24Template 24 | target_destination | |||
Template25Template 25 | target_destination | |||
Template26Template 26 | target_destination | |||
Template27Template 27 | target_destination | |||
Template28Template 28 | target_destination | |||
Template29Template 29 | target_destination | |||
Template30Template 30 | target_destination | |||
Template31Template 31 | target_destination | |||
Template32Template 32 | target_destination | |||
Template33Template 33 | target_destination | |||
Template34Template 34 | target_destination | |||
Template35Template 35 | target_destination | |||
Template36Template 36 | target_destination | |||
Template37Template 37 | target_destination | |||
Template38Template 38 | target_destination | |||
Template39Template 39 | target_destination | |||
Template40Template 40 | target_destination | |||
Template41Template 41 | target_destination | |||
Template42Template 42 | target_destination | |||
Template43Template 43 | target_destination | |||
Template44Template 44 | target_destination | |||
Template45Template 45 | target_destination | |||
Template46Template 46 | target_destination | |||
Template47Template 47 | target_destination | |||
Template48Template 48 | target_destination | |||
Template49Template 49 | target_destination | |||
Template50Template 50 | target_destination | |||
Template51Template 51 | target_destination | |||
Template52Template 52 | target_destination | |||
Template53Template 53 | target_destination | |||
Template54Template 54 | target_destination | |||
Template55Template 55 | target_destination | |||
Template56Template 56 | target_destination | |||
Template57Template 57 | target_destination | |||
Template58Template 58 | target_destination | |||
Template59Template 59 | target_destination | |||
Template60Template 60 | target_destination | |||
Template61Template 61 | target_destination | |||
Template62Template 62 | target_destination | |||
Template63Template 63 | target_destination | |||
Template64Template 64 | target_destination |