Zh/Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
< Zh‎ | Keyvalue
Jump to navigation Jump to search
(Created page with "{{ScrollBox|title=Targetname/实体目标名| {{KV:zh|Name|字符串|实体目标名其他实体根据此名称查找本实体。{{{targetname add|}}}}} {{#if:{...")
 
mNo edit summary
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{ScrollBox|title=Targetname/实体目标名|
{{LanguageBar}}
{{KV:zh|Name|字符串|[[targetname|实体目标名]]其他实体根据此名称查找本实体。{{{targetname add|}}}}}
<onlyinclude>{{KV
{{#if:{{{l4d2|}}}|
| intn = 目标名称
{{KV:zh|Entity Scripts|scriptlist|实体生成后可通过输出调用的[[VScript]]脚本文件,所有脚本都处于同一脚本域,会覆盖相同名称的变量和功能函数等。 |since=L4D2}}
| addtext = {{Invisible edit link|namespace=|键值/目标名}}
{{KV:zh|Script think function|字符串|脚本功能函数名,每秒自动会调用此函数10次,比较于logic_timer更方便。 请避免 [[expensive]](昂贵)的效果操作,会损失性能。返回值(如果有),会设置下一次调用时间。}}|since=L4D2}}
| 1 = [[Targetname|Name]]
| }}{{#if:{{{l4d2|}}}||{{#if:{{{basehl2|}}}||
| 2 = target_source
{{KV:zh|Entity Scripts|scriptlist|实体生成后可通过输出调用的[[VScript]]脚本文件,所有脚本都处于同一脚本域,会覆盖相同名称的变量和功能函数等。 |since=L4D2}}
| 3 = 这个名称是其他实体通过 {{L|Inputs and Outputs|输入/输出}} 或其他 {{L|keyvalue|关键值}}(如 <code>[[Entity_Hierarchy_(parenting)#Parentname|parentname]]</code> 或 <code>target</code>) 来引用该实体时使用的标识符。</br>该名称也会显示在 Hammer 编辑器的 2D 视图和 {{L|Hammer Entity Report Dialog|实体报告}} 中。}} {{seealso|所有实体均可使用的 {{L|Generic Keyvalues, Inputs and Outputs|通用键值、输入与输出}} }}</onlyinclude>
{{KV:zh|Script think function|字符串|脚本功能函数名,每秒自动会调用此函数10次,比较于logic_timer更方便。 请避免 [[expensive]](昂贵)的效果操作,会损失性能。返回值(如果有),会设置下一次调用时间。}}|since=L4D2}}
 
}}}}
{{wikinote|可使用 {{T|KV Targetname}} 模板添加到实体页面中。语言选项将根据页面前缀自动选择。}}
}}<noinclude>
[[Category:Keyvalue Templates|Targetname]]
</noinclude>

Latest revision as of 04:09, 22 July 2025

English (en)Deutsch (de)Español (es)Français (fr)Hrvatski (hr)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)中文 (zh)Translate (Translate)
Info content.png
This translated page needs to be updated.
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.(en)
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.


Name (目标名称) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见:  所有实体均可使用的 通用键值、输入与输出(en)

Wiki Note:可使用 {{KV Targetname}} 模板添加到实体页面中。语言选项将根据页面前缀自动选择。