|
|
(44 intermediate revisions by 6 users not shown) |
Line 1: |
Line 1: |
| {{Lang}} | | {{LanguageBar}} |
| {{Note|'''This template is deprecated. For new entity pages, please use [[Template:KV BaseEntity]] instead.'''}} | | <onlyinclude>{{KV |
| | | intn = targetname |
| | | addtext = {{Invisible edit link|namespace=|Keyvalue/Targetname}} |
| | | 1 = [[Targetname|Name]] |
| | | 2 = target_source |
| | | 3 = The name that other entities refer to this entity by, via [[Inputs and Outputs|Inputs/Outputs]] or other [[keyvalue]]s (e.g. <code>[[Entity_Hierarchy_(parenting)#Parentname|parentname]]</code> or <code>target</code>).</br>Also displayed in Hammer's 2D views and [[Hammer Entity Report Dialog|Entity Report]].}} {{seealso|[[Generic Keyvalues, Inputs and Outputs]] available to all entities}}</onlyinclude> |
|
| |
|
| {{KV Targetname}} | | {{wikinote|Can be added to entity pages using template {{T|KV Targetname}}. Language is selected automatically based on the page's prefix.}} |
| {{KV Targetname|l4d2=1}}
| |
| | |
| | |
| {{KV|start}}
| |
| {{KV Targetname|new=1}}
| |
| {{KV|end}}
| |
| | |
| | |
| {{KV|start}}
| |
| {{KV Targetname|new=1|l4d2=1}}
| |
| {{KV|end}}
| |
| | |
| <includeonly><onlyinclude>{{#if:{{{new|}}}|
| |
| {{KV
| |
| | new = 1
| |
| | targetname
| |
| | string
| |
| | src = Targetname
| |
| | [[Targetname|Name]]|The [[targetname]] that other entities refer to this entity by. {{{targetname add|}}}
| |
| }}
| |
| {{#if:{{{l4d2|}}}|
| |
| {{KV
| |
| | new = 1
| |
| | vscripts
| |
| | scriptlist
| |
| | src = Targetname
| |
| | Entity Scripts|since={{l4d2}}|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
| |
| }}
| |
| {{KV
| |
| | new = 1
| |
| | thinkfunction
| |
| | string
| |
| | src = Targetname
| |
| | Script think function|since={{l4d2}}|Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call. {{Note|Try to avoid expensive operations in this function, as it may cause performance problems.}}
| |
| }}
| |
| |}}
| |
| |}}<!--
| |
| | |
| | |
| | |
| | |
| | |
| | |
| ============================================
| |
| DEPRECATED DEPRECATED DEPRECATED DEPRECATED:
| |
| ============================================
| |
| | |
| -->{{#if:{{{new|}}}
| |
| |
| |
| |{{ScrollBox|title=Targetname|
| |
| {{KV|[[Targetname|Name]]|string|intn=targetname|The [[targetname]] that other entities refer to this entity by. {{{targetname add|}}}}}
| |
| {{#if:{{{l4d2|}}}|
| |
| {{KV|Entity Scripts|scriptlist|intn=vscripts|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since={{l4d2}}}}
| |
| {{KV|Script think function|string|intn=thinkfunction|Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call. {{note|Try to avoid expensive operations in this function, as it may cause performance problems.}}|since={{l4d2}}}}
| |
| | }}
| |
| }}}}</onlyinclude></includeonly>
| |