Trigger teleport
< Zh
Jump to navigation
Jump to search
实体描述
它是一个可以传送接触它体积的实体 的触发器 。实体被传送到远程目的地,并将其角度设置为远程目的地的角度。如果指定了本地目标地标,则传送实体与目标之间的偏移量为它们与地标之间的初始偏移量,且它们的角度不受影响。
待完善: This template is currently using deprecated suf or {{Lang}}-based translations. Please use the main {{Code class}} instead, which uses {{Autolang}}.
在源代码中,它由 class
CTriggerTeleport
代表,定义于 triggers.cpp
。
键值
- Remote Destination ([todo internal name (i)]) <target_destination>
- 指定实体应该被传送到哪个点的实体。通常为info_teleport_destination 或info_target 。


TriggerOnce:
- Filter Name
(filtername)
<filter > - 要针对激活者进行测试的过滤器实体的名称。
Template:KV BaseEntity:zh-cn EnableDisable/启动禁用:
- Start Disabled
(StartDisabled)
<布尔值 > - 保持休眠状态,直到被唤醒。(利用
Enable
输入)。
标志
TriggerOnce:
- [
1
] : Clients
- [
2
] : NPCs
- [
4
] : Pushables
- [
8
] : Physics Objects
- [
16
] : Only player ally NPCs
- [
32
] : Only clients in vehicles
- [
64
] : Everything (not including physics debris)
- [
512
] : Only clients *not* in vehicles
- [
1024
] : Physics debris
- [
2048
] : Only NPCs in vehicles (respects player ally flag)
- [
4096
] : Disallow Bots

输入
TriggerOnce:
Toggle
- 在启用和禁用状态之间切换此触发器。
Base:
AddContext
<字符串 >- 添加到实体的 Response Contexts/响应上下文列表。格式是
<key>:<value>
。
展开 语法:
ClearContext
- 从此实体的列表中删除所有上下文。
ClearParent
- 从移动层次结构中删除该实体,使其可以自由移动。
FireUser1
到FireUser4
- 触发相应的
OnUser
输出;详见 User Inputs and Outputs。
Kill
- 从这个世界中删除此实体。
KillHierarchy
- 功能类似
Kill
,尽管此实体与其父实体都被删除了,但比Kill
快一点。
RemoveContext
- 从实体列表删除一个上下文。名字应与现有上下文进行匹配。
SetParent
<字符串 >- 跟随此实体移动,详见 实体层级(依赖关系)。
SetParentAttachmentMaintainOffset
<字符串 >- 同上,但没有传送。在接收到输入时,实体保持其相对于附件的位置。
DispatchResponse
<字符串 > 不存在于FGD!- 向实体发送一个上下文。 详见 Response
和 Concept
.
DispatchEffect
<字符串 > (自从被移除) 不存在于FGD!
- 在实体的原点坐标设置一个特定效果;参见 List of Client Effects
。自从
求生之路后由粒子系统取代。
RunScriptCode
<字符串 > (存在于自以来)
- 在接收输入的实体范围内执行一串 VScript 源代码。通过控制台触发时可能需要字符串引用。
修复:使用文本编辑器手动删除带有字符串的参数。
SetLocalOrigin
<coordinates > (存在于自以来) 不存在于FGD!
- 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
EnableDisable/启动禁用:
Enable
Disable
- 启动/禁用此实体所具备的效果。同样会使实体消失。
输出
TriggerOnce:
OnStartTouch
- 当实体开始接触此触发器时触发。触碰的实体必须通过此触发器的过滤器才能触发此输出。(
!activator
是toucher)
OnTrigger
- 当实体在此触发器的体积中时,会延迟重复触发。延迟由 Delay Before Reset 键值定义。