Skip to content

point_template

Entity I/O / 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 @PointClass in game/core/base.fgd, bases Targetname, Parentname, CanBeClientOnly.
  • cs_script type: PointTemplate, what FindEntitiesByClass("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)

NameParameterFromDescription
RunScriptFilestringVScriptLoad and execute a script file
RunScriptCodestringVScriptExecute a fragment of script code
CallScriptFunctionstringVScriptCall a script function
CallPrivateScriptFunctionstringVScriptCalls a script function from this entity's private script scope.
CallGlobalScriptFunctionstringVScriptCalls a script function in the global script scope.
KillGameEntityRemoves this entity from the world.
KillHierarchyGameEntityRemoves this entity and all its children from the world.
KillConstrainedGameEntityRemoves this entity, all its children, and anything constrained to it, from the world.
AddOutputstringGameEntityAdds 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.
FireUser1GameEntityCauses this entity's OnUser1 output to be fired.
FireUser2GameEntityCauses this entity's OnUser2 output to be fired.
FireUser3GameEntityCauses this entity's OnUser3 output to be fired.
FireUser4GameEntityCauses this entity's OnUser4 output to be fired.
EnableAutoSleepingGameEntityEnable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest.
DisableAutoSleepingGameEntityDisable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep.
SetParentapiParentname
SetParentWithOffsetapiParentname
SetParentMaintainOffsetapiParentname
SetParentAttachmentstringParentnameChange 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.
SetParentAttachmentMaintainOffsetstringParentnameChange 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.
ClearParentParentnameRemoves this entity from the the movement hierarchy, leaving it free to move independently.
FollowEntitystringParentnameBone merges this entity to a parent entity. Call again passing nothing to end the bone merge.
ForceSpawnapi
DeleteCreatedSpawnGroupsapi

Outputs (6)

NameParameterFromDescription
OnUser1GameEntityFired in response to FireUser1 input.
OnUser2GameEntityFired in response to FireUser2 input.
OnUser3GameEntityFired in response to FireUser3 input.
OnUser4GameEntityFired in response to FireUser4 input.
OnKilledGameEntityFired when the entity is killed and removed from the game. Parameter is the inflictor.
OnEntitySpawnedapi

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.

KeyTypeDefaultFromDescription
vscripts
Entity Scripts
scriptlistVScriptName(s) of script files that are executed after all entities have spawned.
targetname
Name
target_sourceTargetnameThe name that other entities refer to this entity by.
parentname
Parent
target_destinationParentnameThe name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
parentAttachmentName
Parent Bone/Attachment Name
parentAttachmentParentnameThe 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)
useLocalOffset
Use Local Transform
boolean0ParentnameWhether to respect the specified local offset when doing the initial hierarchical attachment to its parent.
local.origin
Local Origin
vectorParentnameOffset 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.angles
Local Angles
angleParentnameAngular 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.scales
Local Scale
vector1 1 1ParentnameScale in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
clientSideEntity
Create Client-Only Entity
intchoices0CanBeClientOnly
  • 0 No
  • 1 Yes
spawnflagsflags
  • 1 Don't remove template entities
  • 2 Preserve entity names (Don't do name fixup) (on by default)
asynchronous
Asynchronous Spawn
boolean0Allows 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.
timeoutInterval
Timeout Interval
float0The 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.
entityFilterName
Entity Filter Name
stringName 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.
spawnGroupType
Spawn Group Type
choicesINSERT_INTO_POINT_TEMPLATE_SPAWN_GROUP
  • INSERT_INTO_POINT_TEMPLATE_SPAWN_GROUP Spawn into point_template's spawn group
  • INSERT_INTO_CURRENTLY_ACTIVE_SPAWN_GROUP Spawn into the currently active spawn group
  • INSERT_INTO_NEWLY_CREATED_SPAWN_GROUP Spawn into a newly created spawn group
clientOnlyEntityBehavior
Client Only Entity Behavior
choicesCREATE_FOR_CURRENTLY_CONNECTED_CLIENTS_ONLYThis 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.
  • CREATE_FOR_CURRENTLY_CONNECTED_CLIENTS_ONLY Only create for clients connected at the time at which point_template spawns its contents
  • CREATE_FOR_CLIENTS_WHO_CONNECT_LATER Create for clients who connect after the point_template spawns its contents
Template01
Template 1
target_destination
Template02
Template 2
target_destination
Template03
Template 3
target_destination
Template04
Template 4
target_destination
Template05
Template 5
target_destination
Template06
Template 6
target_destination
Template07
Template 7
target_destination
Template08
Template 8
target_destination
Template09
Template 9
target_destination
Template10
Template 10
target_destination
Template11
Template 11
target_destination
Template12
Template 12
target_destination
Template13
Template 13
target_destination
Template14
Template 14
target_destination
Template15
Template 15
target_destination
Template16
Template 16
target_destination
Template17
Template 17
target_destination
Template18
Template 18
target_destination
Template19
Template 19
target_destination
Template20
Template 20
target_destination
Template21
Template 21
target_destination
Template22
Template 22
target_destination
Template23
Template 23
target_destination
Template24
Template 24
target_destination
Template25
Template 25
target_destination
Template26
Template 26
target_destination
Template27
Template 27
target_destination
Template28
Template 28
target_destination
Template29
Template 29
target_destination
Template30
Template 30
target_destination
Template31
Template 31
target_destination
Template32
Template 32
target_destination
Template33
Template 33
target_destination
Template34
Template 34
target_destination
Template35
Template 35
target_destination
Template36
Template 36
target_destination
Template37
Template 37
target_destination
Template38
Template 38
target_destination
Template39
Template 39
target_destination
Template40
Template 40
target_destination
Template41
Template 41
target_destination
Template42
Template 42
target_destination
Template43
Template 43
target_destination
Template44
Template 44
target_destination
Template45
Template 45
target_destination
Template46
Template 46
target_destination
Template47
Template 47
target_destination
Template48
Template 48
target_destination
Template49
Template 49
target_destination
Template50
Template 50
target_destination
Template51
Template 51
target_destination
Template52
Template 52
target_destination
Template53
Template 53
target_destination
Template54
Template 54
target_destination
Template55
Template 55
target_destination
Template56
Template 56
target_destination
Template57
Template 57
target_destination
Template58
Template 58
target_destination
Template59
Template 59
target_destination
Template60
Template 60
target_destination
Template61
Template 61
target_destination
Template62
Template 62
target_destination
Template63
Template 63
target_destination
Template64
Template 64
target_destination