Zh/Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
< Zh‎ | Keyvalue
Jump to navigation Jump to search
(Update page)
mNo edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>
{{LanguageBar}}
{{note:zh-cn|'''此模板已弃用。对于新的实体页面,请改用 [[Template:KV BaseEntity]]。'''}}
<onlyinclude>{{KV
</noinclude>
| intn = 目标名称
{{ScrollBox|title=Targetname|
| addtext = {{Invisible edit link|namespace=|键值/目标名}}
{{KV|[[Targetname|Name]]|string|intn=targetname|其他实体引用该实体的[[targetname|目标名称]]。{{{targetname add|}}}}}
| 1 = [[Targetname|Name]]
{{#if:{{{l4d2|}}}|
| 2 = target_source
{{KV|Entity Scripts|scriptlist|intn=vscripts|在所有实体生成后执行的 [[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|Script think function|string|intn=thinkfunction|此实体脚本中的函数名称,该函数将在脚本持续时间内每 100 毫秒(每秒 10 次)自动调用一次。它可用于创建计时器或模拟自主行为。返回值(如果存在)将设置下一次调用之前的时间。{{note:zh-cn|尽量避免在这个函数中进行昂贵的操作,因为它可能会导致性能问题。}}|since={{l4d2}}}}
 
| }}{{#if:{{{l4d2|}}}||{{#if:{{{basehl2|}}}||
{{wikinote|可使用 {{T|KV Targetname}} 模板添加到实体页面中。语言选项将根据页面前缀自动选择。}}
{{KV|Entity Scripts|scriptlist|intn=vscripts|在所有实体生成后执行的 [[VScript]] 文件(无文件扩展名)的空格分隔列表。这些脚本都在同一个脚本范围内执行,以后的脚本会覆盖任何相同的变量和函数。|since={{l4d2}}}}
{{KV|Script think function|string|intn=thinkfunction|此实体脚本中的函数名称,该函数将在脚本持续时间内每 100 毫秒(每秒 10 次)自动调用一次。它可用于创建计时器或模拟自主行为。返回值(如果存在)将设置下一次调用之前的时间。{{note:zh-cn|尽量避免在这个函数中进行昂贵的操作,因为它可能会导致性能问题。}}|since={{l4d2}}}}
}}}}
}}<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}} 模板添加到实体页面中。语言选项将根据页面前缀自动选择。