Difference between revisions of "Template:I BaseEntity"

From Valve Developer Community
Jump to: navigation, search
m (brackets typo fix)
(fix context parameters)
 
Line 18: Line 18:
 
"OnUser1" "!self:ClearParent::0.0:-1"
 
"OnUser1" "!self:ClearParent::0.0:-1"
 
</syntaxhighlight>| Syntax<nowiki>:</nowiki>}} | param=string }}
 
</syntaxhighlight>| Syntax<nowiki>:</nowiki>}} | param=string }}
{{IO|ClearContext|Removes all contexts from this entity's list.|param=string}}
+
{{IO|ClearContext|Removes all contexts from this entity's list.}}
 
{{IO|ClearParent|Removes this entity from the the movement hierarchy, leaving it free to move independently.}}
 
{{IO|ClearParent|Removes this entity from the the movement hierarchy, leaving it free to move independently.}}
 
{{IO|FireUser1|to=FireUser4|Fires the respective<code>OnUser</code>outputs; see [[User Inputs and Outputs]].}}
 
{{IO|FireUser1|to=FireUser4|Fires the respective<code>OnUser</code>outputs; see [[User Inputs and Outputs]].}}
 
{{IO|Kill|Removes this entity and any entities parented to it from the world.}}
 
{{IO|Kill|Removes this entity and any entities parented to it from the world.}}
 
{{IO|KillHierarchy|Functions the same as <code>Kill</code>, although this entity and any entities parented to it are killed on the same frame, being marginally faster than<code>Kill</code>input.}}
 
{{IO|KillHierarchy|Functions the same as <code>Kill</code>, although this entity and any entities parented to it are killed on the same frame, being marginally faster than<code>Kill</code>input.}}
{{IO|RemoveContext|Remove a context from this entity's list. The name should match the key of an existing context.}}
+
{{IO|RemoveContext|Remove a context from this entity's list. The name should match the key of an existing context.|param=string}}
 
{{IO|SetParent|Move with this entity. See [[Entity Hierarchy (parenting)]].|param=string}}
 
{{IO|SetParent|Move with this entity. See [[Entity Hierarchy (parenting)]].|param=string}}
 
{{IO|SetParentAttachment|Change this entity to attach to a specific [[attachment]] point on its parent. The entity will teleport so that the position of its root [[bone]] matches that of the attachment.  Entities must be parented before being sent this input.|param=string}}
 
{{IO|SetParentAttachment|Change this entity to attach to a specific [[attachment]] point on its parent. The entity will teleport so that the position of its root [[bone]] matches that of the attachment.  Entities must be parented before being sent this input.|param=string}}

Latest revision as of 05:22, 29 September 2021

English Русский 简体中文


Template icon Template documentation[view] [edit] [history] [purge]

Info holder of all relevant inputs inheriting theCBaseEntity C++ class. Template parameters are vital in displaying the appropiate info, because new games have added new features throughout the years. See Help:Templates for more info on named parameters.

Not allCBaseEntityinputs are not covered here. But you can see them all at the Uncovered Keyvalues page.

Note.png Note: If you want to edit something on this template, please make sure you edit it in both places. Per-game keyvalues are duplicated, for technical reasons. Also see FGD Template Prototype.

Usage

These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:as=1. Only one game parameter can be used at once.

{{I BaseEntity|as=1}}

Parameters

If you leave the parameter field empty (using no arguments), the template will automatically fallback to displaying keyvalues from the current default game.

All parameters for this template:

  • base- Shows only information relevant to when it was initially added for the first time
  • l4d2- Include info specific to Left 4 Dead 2 (VScripts)
  • as- [CURRENT DEFAULT] Include info specific to Alien Swarm (SetLocalOrigin and SetLocalAngles)


Show Deprecated:  

Refer to the Examples section for samples.

Examples

Show info specific to a game Alien Swarm

This makes information relevant only to Alien Swarm be displayed.

{{I BaseEntity|as=1}}


will: 

Show info for its base

Information relevant only to base engine are displayed. (Source 2013Source 2013 / <Source><Source><Source>)

{{I BaseEntity|base=1}}


will: 

Show information for all games

Shows every game information for this key that this template can display.

{{I BaseEntity}}


will: 

See Also