prop_floor_button

From Valve Developer Community
< Zh
Revision as of 22:49, 8 November 2025 by WoShiGeNiCheng (talk | contribs) (Created page with "{{LanguageBar|prop_floor_button}} thumb|250px|1500兆瓦光圈科技重型超级碰撞按钮 {{this is a|model entity|game=Portal 2|name=prop_floor_button}} 这是一个可由玩家或物体激活的地板按钮。 ==键值== {{KV Targetname}} {{KV|Button model|intn=model|studio|按钮模型必须具有正确的序列和附着点才能作为按钮工作。}} {{KV|Suppress Animation Sounds|intn=SuppressAnimSounds|bool|阻止按钮播放...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
1500兆瓦光圈科技重型超级碰撞按钮

prop_floor_button是一个UNTRANSLATED string "model entity" see Template:This is a/strings,可在传送门2 传送门2中使用。 这是一个可由玩家或物体激活的地板按钮。

键值

Name(en) (targetname) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见: 所有实体均可使用的 通用键值、输入与输出(en)
Button model (model) <模型文件路径(en)>
按钮模型必须具有正确的序列和附着点才能作为按钮工作。
Suppress Animation Sounds (SuppressAnimSounds) <布尔值(en)> 不存在于FGD!
阻止按钮播放任何声音。
Parentname:
Parent (parentname) <目标名(en)>
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.
Pitch Yaw Roll (Y Z X) (angles) <QAngle(en)>
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.

输入

PressIn
激活按钮,就像被按下一样,将其发送到底部位置。
PressOut
取消按下按钮,将其发送到顶部位置。
Parentname:
SetParent <字符串(en)>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <字符串(en)>
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.
SetParentAttachmentMaintainOffset <字符串(en)>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

输出

OnPressed
当按钮被按下时调用。
OnPressedBlue
在合作模式中,当按钮被蓝色玩家按下时调用。
OnPressedOrange
在合作模式中,当按钮被橙色玩家按下时调用。
OnUnPressed
当按钮取消按下时调用。
OnUnpressed
取消按下时触发。