info_item_position

来自Valve Developer Community
跳转至: 导航搜索
English (en)中文 (zh)
... Icon-Important.png
Info content.png
This page needs to be translated.
本页面需要翻译。

本页面或包含不完全的翻译、不正确的翻译,或未有翻译。
如果本页面出于某些原因无法被翻译,或长时间地处于未翻译的状态,则应予删除。

另外,请确保文章在尽量遵守 多语言指导。

info_item_position是一个点实体存在于 求生之路2 求生之路2。 An entity that represents a possible item location in a map. Scripts can search for these entities and use them to spawn objects for different game modes

Keyvalues


Targetname:
Name (targetname) <string简体中文> | 字符串
The targetname that other entities refer to this entity by.

Angles:
Pitch Yaw Roll (Y Z X) (angles) <angle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Parentname:
Parent (parentname) <targetname> | 目标名
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Helper Model (???) <model path> | 模型文件路径
A model used to represent this entity.
Group (???) <integer> | 整数
Group Number.
Rarity (???) <choices>
Item rarity at this location.
Replace (???) <string简体中文> | 字符串
This is a replacement parameter. It goes in the form of $variable value. All entities inside of the spawn group that have $variable somewhere will be replaced with the value contents. Example: $color 255 0 0

Inputs

Kill
从这个世界中删除此实体。
KillHierarchy
功能类似于Kill,尽管此实体与其父实体都被删除了,但比Kill快一点。
AddOutput<string简体中文> | 字符串
在此实体上分配新的键值/输出。对于键值,有些依赖于额外的必要代码来运行,如果它只是通过这个输入改变就行不通。必须遵循严格的格式:
语法: 
// 更改键值的格式 "AddOutput [键] [值]"
//// 原始文本
"OnUser1" "!self,AddOutput,targetname new_name"

// 添加输出的格式 "AddOutput {目标名称}:{输入名称}:{参数}:{延迟}:{最大触发次数,-1 代表无限}"
//// 原始文本
"OnUser1" "!self:SetParent:!activator:0.0:-1"
// 参数可以留空但仍应包含空的空白
//// 原始文本
"OnUser1" "!self:ClearParent::0.0:-1"
FireUser1FireUser4
触发OnUser输出; 详见 User Inputs and Outputs
Use 不存在于FGD!
类似于玩家按 +use(使用,默认E按钮); 也许不会做什么事! 也可以通过创建未指定的输入来调用输出。
这个输入不存在于Valve的 FGD中。
RunScriptFile<script> | 脚本 (存在于自 求生之路2 以来)
从硬盘执行一个VScript脚本文件,不带文件后缀名。 会合并接收实体的脚本域。
RunScriptCode<string简体中文> | 字符串 (存在于自 求生之路2 以来)
(执行脚本代码。)执行一段接收实体域的脚本源代码。通过控制台触发,可能需要英文双引号。
Icon-Bug.png错误:求生之路2中,该代码是触发输出的实体的脚本域中执行, 接受输入的实体。
Warning.png警告:切勿在此输入的元素内使用字符串!它将破坏VMF ,由嵌套引号引起!你必须用文本编辑器手动删除来修复!
CallScriptFunction<string简体中文> | 字符串 (存在于自 求生之路2 以来) 不存在于FGD!
在接受实体脚本域上执行一段vscript函数。
SetLocalOrigin<coordinates> (存在于自 异形丛生 以来) 不存在于FGD!
将此实体设置到地图上某点。如果此实体是某实体父级,那么它的子级也会随着偏移。
SetLocalAngles<angles> (存在于自 异形丛生 以来) 不存在于FGD!
设置实体的角度(朝向)。
Strip
Removes all weapons.
StripActiveWeapon
Removes the active weapon.
StripWeaponByClassname
string

Outputs


Targetname:
OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (存在于 求生之路 之中)
This output fires when the entity is killed and removed from the game.