func_portal_bumper

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

func_portal_bumper是一个笔刷实体,可在传送门(系列) 传送门(系列)中使用。

类层级
CFuncPortalBumper
CBaseEntity

实体描述

该实体用于《传送门》游戏使无法在其内部开启传送门, 且将传送门弹开。当防传送门表面直接与允许传送门的表面相连时使用此实体。

虽然并非绝对必要,但使用该实体会使你的谜题更加友好。如果表面存在角度(例如房间角落),则不需要使用此实体。

Note.png注意:每个func_portal_bumper必须从表面至少突出两个单位。

使用方法

键值(Keyvalues)

参见:  Generic Keyvalues, Inputs and Outputs available to all entities
Name(en) (targetname) <target_source>
其他实体引用该实体的目标名称。
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.

Flags

Start inactive : [1]
默认一开始禁用

输入(Inputs)

Deactivate
关闭弹开功能
Activate
开启弹开功能
Toggle
切换弹开功能


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.